导航bug
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<div class="hud_left"></div>
|
||||
<div class="hud_right"></div>
|
||||
<div class="bottom_bg"></div>
|
||||
<div v-show="$route.path !== '/index/home' && $route.path !== '/index/errorinfo' && $route.path !== '/index/teach'" class="side-bar-container">
|
||||
<div v-show="$route.path !== '/index/home' && $route.path !== '/index/errorinfo' && $route.path !== '/index/teach' && $route.path !== '/index/debug'" class="side-bar-container">
|
||||
<el-menu :default-active="$route.meta.guidePath" @select="handleSelectChild">
|
||||
<el-menu-item :index="menu.index" v-for="menu in childmenus" :key="menu.index" :class="{'el-menu-item-long': menu.title.length === 5 }">{{selectType === 'en-us' ? menu.en_title : menu.zh_title}}</el-menu-item>
|
||||
</el-menu>
|
||||
@@ -167,7 +167,7 @@ export default {
|
||||
},
|
||||
created () {
|
||||
this._sysMenuBuild()
|
||||
// this._queryHead()
|
||||
this._queryHead()
|
||||
// this.timer = setInterval(() => {
|
||||
// this._queryHead()
|
||||
// }, this.itime)
|
||||
@@ -195,11 +195,12 @@ export default {
|
||||
handleSelect (key) {
|
||||
this.dropdown = false
|
||||
this.menus.map(el => {
|
||||
if (el.router === '' && el.index === key) {
|
||||
this.$router.push({ path: el.children[0].router })
|
||||
}
|
||||
if (key === '5' || key === '7') {
|
||||
this.$router.push({ path: el.router })
|
||||
if (el.index === key) {
|
||||
if (el.index === '5' || el.index === '7') {
|
||||
this.$router.push({ path: el.router })
|
||||
} else {
|
||||
this.$router.push({ path: el.children[0].router })
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user