b4bdd4f:开启TopNav没有子菜单隐藏侧边栏
parent
179fdc8464
commit
9b47dd4a67
|
@ -133,7 +133,9 @@ export default {
|
|||
} else {
|
||||
// 显示左侧联动菜单
|
||||
this.activeRoutes(key);
|
||||
this.$store.dispatch('app/toggleSideBarHide', false);
|
||||
if (!this.$route.meta.link) {
|
||||
this.$store.dispatch('app/toggleSideBarHide', false);
|
||||
}
|
||||
}
|
||||
},
|
||||
// 当前激活的路由
|
||||
|
@ -149,7 +151,7 @@ export default {
|
|||
if(routes.length > 0) {
|
||||
this.$store.commit("SET_SIDEBAR_ROUTERS", routes);
|
||||
} else {
|
||||
this.$store.dispatch("app/toggleSideBarHide", true);
|
||||
this.$store.dispatch('app/toggleSideBarHide', true);
|
||||
}
|
||||
},
|
||||
ishttp(url) {
|
||||
|
|
Loading…
Reference in New Issue