Explorar el Código

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

RuoYi hace 2 años
padre
commit
89e93a986e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 }