diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index f7e2654..c2d1a74 100644 --- a/src/components/TopNav/index.vue +++ b/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; }