mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-09-28 15:22:42 +00:00
开启TopNav没有子菜单情况隐藏侧边栏
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user