开启TopNav没有子菜单情况隐藏侧边栏

This commit is contained in:
RuoYi
2022-03-06 09:00:47 +08:00
parent 6de1250639
commit 93caadaadb
7 changed files with 35 additions and 31 deletions

View File

@ -102,6 +102,7 @@ const topNav = computed({
value: val
})
if (!val) {
store.dispatch('app/toggleSideBarHide', false);
store.commit("SET_SIDEBAR_ROUTERS", store.state.permission.defaultRoutes);
}
}