开启TopNav没有子菜单隐藏侧边栏
This commit is contained in:
parent
750a09d5b7
commit
89e93a986e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue