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

This commit is contained in:
RuoYi 2022-11-17 14:18:14 +08:00
parent 750a09d5b7
commit 89e93a986e
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ function activeRoutes(key) {
} }
if(routes.length > 0) { if(routes.length > 0) {
permissionStore.setSidebarRouters(routes); permissionStore.setSidebarRouters(routes);
} else {
appStore.toggleSideBarHide(true);
} }
return routes; return routes;
} }