提交 1aa1bf9c authored 作者: 王鹏飞's avatar 王鹏飞

chore: 新增实操训练入口

上级 23a30ec0
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
:key="item.title" :key="item.title"
v-for="item in item.children" v-for="item in item.children"
@click="handleClick(item.path, item)" @click="handleClick(item.path, item)"
v-show="menuVisible(item.tag)" v-show="menuVisible(item.tag)">
>
<template #title> <template #title>
<template v-if="item.href"> <template v-if="item.href">
<a :href="item.href" target="_blank">{{ item.title }}</a> <a :href="item.href" target="_blank">{{ item.title }}</a>
...@@ -30,15 +29,14 @@ ...@@ -30,15 +29,14 @@
</el-menu-item> </el-menu-item>
</el-submenu> </el-submenu>
<el-menu-item <el-menu-item :index="item.path" :key="item.title" @click="handleClick(item.path)" v-show="menuVisible(item.tag)" v-else>
:index="item.path"
:key="item.title"
@click="handleClick(item.path)"
v-show="menuVisible(item.tag)"
v-else
>
<i class="iconfont" :class="item.icon"></i> <i class="iconfont" :class="item.icon"></i>
<span slot="title">{{ item.title }}</span> <template #title>
<template v-if="item.href">
<a :href="item.href" target="_blank">{{ item.title }}</a>
</template>
<template v-else>{{ item.title }}</template>
</template>
</el-menu-item> </el-menu-item>
</template> </template>
</el-menu> </el-menu>
...@@ -135,6 +133,11 @@ export default { ...@@ -135,6 +133,11 @@ export default {
{ tag: 'menu_help_system', title: '系统说明', path: '/doc' }, { tag: 'menu_help_system', title: '系统说明', path: '/doc' },
{ tag: 'menu_help_qa', title: '常见问题', path: '/help' } { tag: 'menu_help_qa', title: '常见问题', path: '/help' }
] ]
},
{
title: '实操训练',
href: 'https://saas-x.ezijing.com',
icon: 'icon-bianzuhong'
} }
] ]
} }
...@@ -144,9 +147,7 @@ export default { ...@@ -144,9 +147,7 @@ export default {
if (this.menus && this.menus.length) { if (this.menus && this.menus.length) {
return this.menus return this.menus
} }
return this.user.role === 2 return this.user.role === 2 ? this.techerMenus.concat(this.defaultMenus) : this.studentMenus.concat(this.defaultMenus)
? this.techerMenus.concat(this.defaultMenus)
: this.studentMenus.concat(this.defaultMenus)
}, },
user() { user() {
return this.$store.state.user return this.$store.state.user
...@@ -261,7 +262,7 @@ export default { ...@@ -261,7 +262,7 @@ export default {
.el-submenu__title { .el-submenu__title {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
padding-left: 25px !important; // padding-left: 25px !important;
} }
.el-menu-item:hover, .el-menu-item:hover,
.el-menu-item:focus { .el-menu-item:focus {
...@@ -271,7 +272,7 @@ export default { ...@@ -271,7 +272,7 @@ export default {
.el-submenu .el-menu-item { .el-submenu .el-menu-item {
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
padding-left: 55px !important; padding-left: 50px !important;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论