We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbe052 commit fdde538Copy full SHA for fdde538
src/components/TopNav/index.vue
@@ -133,7 +133,9 @@ export default {
133
} else {
134
// 显示左侧联动菜单
135
this.activeRoutes(key);
136
- this.$store.dispatch('app/toggleSideBarHide', false);
+ if (!this.$route.meta.link) {
137
+ this.$store.dispatch('app/toggleSideBarHide', false);
138
+ }
139
}
140
},
141
// 当前激活的路由
@@ -149,7 +151,7 @@ export default {
149
151
if(routes.length > 0) {
150
152
this.$store.commit("SET_SIDEBAR_ROUTERS", routes);
153
- this.$store.dispatch("app/toggleSideBarHide", true);
154
+ this.$store.dispatch('app/toggleSideBarHide', true);
155
156
157
ishttp(url) {
0 commit comments