b4bdd4f:开启TopNav没有子菜单隐藏侧边栏

This commit is contained in:
YunaiV 2023-01-25 12:25:34 +08:00
parent 179fdc8464
commit 9b47dd4a67

View File

@ -133,8 +133,10 @@ export default {
} else {
//
this.activeRoutes(key);
if (!this.$route.meta.link) {
this.$store.dispatch('app/toggleSideBarHide', false);
}
}
},
//
activeRoutes(key) {
@ -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) {