Преглед на файлове

开启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;
 }