金融产品设计及数字化营销沙盘
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

2 years ago
<template>
<div class="width-[100%] flex justify-between items-center w-full py-6 px-5 overflow-hidden bg-transparent">
2 years ago
<logo :collapse="collapse" />
<div class="inline-flex items-center">
<el-tooltip effect="light"
content="退出实训"
placement="bottom">
<img class="mr-3 cursor-pointer"
src="@/assets/images/2.png"
alt=""
@click="logout" />
</el-tooltip>
<el-tooltip effect="light"
content="返回关卡"
placement="bottom">
<img class="mr-3 cursor-pointer"
src="@/assets/images/3.png"
alt=""
@click="toLevel" />
</el-tooltip>
<el-tooltip effect="light"
content="返回选择角色"
placement="bottom">
<img class="cursor-pointer"
src="@/assets/images/4.png"
alt=""
@click="toRole" />
</el-tooltip>
2 years ago
</div>
</div>
</template>
<script setup lang="ts">
import { ref, onMounted, computed } from 'vue';
2 years ago
import { useRouter } from 'vue-router';
2 years ago
import { currentUser, perm, logout } from '@/store/useCurrentUser';
import Cookies from 'js-cookie';
2 years ago
import Logo from './Logo.vue';
2 years ago
const router = useRouter();
2 years ago
onMounted(() => {});
2 years ago
// 返回关卡
const toLevel = () => {
router.push('/');
};
// 返回角色
const toRole = () => {
router.push(`/role?levelId=${Cookies.get('sand-level')}`);
};
2 years ago
</script>
<style lang="scss" scoped></style>