|
@@ -26,8 +26,8 @@ const NavList = [
|
|
|
},
|
|
|
]
|
|
|
|
|
|
-function browserOpen(path: string) {
|
|
|
- if (path.startsWith('http'))
|
|
|
+function browserOpen(path: string, flag?: boolean) {
|
|
|
+ if (path.startsWith('http') || flag)
|
|
|
window.open(path, '_self')
|
|
|
else
|
|
|
router.push(path)
|
|
@@ -53,10 +53,15 @@ function browserOpen(path: string) {
|
|
|
</span>
|
|
|
</div>
|
|
|
<template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item @click="browserOpen('https://ycxcktapi.bozedu.net/index.php?mod=index&action=index&do=index')">
|
|
|
+ <el-dropdown-menu v-if="user.user_role_id !== '76'">
|
|
|
+ <el-dropdown-item
|
|
|
+ @click="browserOpen('https://ycxcktapi.bozedu.net/index.php?mod=index&action=index&do=index')"
|
|
|
+ >
|
|
|
后台管理
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click="browserOpen(`https://uc.bozedu.net/webapps/page/glzx.html?type=xuexiao&token=${user.token}`)">
|
|
|
+ 个人中心
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|