Browse Source

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

RuoYi 2 năm trước cách đây
mục cha
commit
89e93a986e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/components/TopNav/index.vue

+ 2 - 0
src/components/TopNav/index.vue

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