소스 검색

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

RuoYi 2 년 전
부모
커밋
89e93a986e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
 }