From 52b3b54470ecc3c80d816a9891b651ce7f5a0eaa Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期六, 11 十月 2025 13:39:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_NEW' into dev_NEW
---
src/components/TopNav/index.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index 62028af..cbd8d13 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -66,7 +66,10 @@
if (menu.path === '/' && menu.children) {
topMenus.push(menu.children[0])
} else {
- topMenus.push(menu)
+ menu.children.forEach(item => {
+ topMenus.push(item)
+
+ })
}
}
})
@@ -102,13 +105,13 @@
const tmpPath = path.substring(1, path.length)
if (!route.meta.link) {
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"))
- appStore.toggleSideBarHide(false)
+ // appStore.toggleSideBarHide(false)
}
} else if(!route.children) {
activePath = path
- appStore.toggleSideBarHide(true)
+ // appStore.toggleSideBarHide(true)
}
- activeRoutes(activePath)
+ // activeRoutes(activePath)
return activePath
})
@@ -132,11 +135,11 @@
} else {
router.push({ path: key })
}
- appStore.toggleSideBarHide(true)
+ // appStore.toggleSideBarHide(true)
} else {
// 鏄剧ず宸︿晶鑱斿姩鑿滃崟
- activeRoutes(key)
- appStore.toggleSideBarHide(false)
+ // activeRoutes(key)
+ // appStore.toggleSideBarHide(false)
}
}
@@ -152,7 +155,7 @@
if(routes.length > 0) {
permissionStore.setSidebarRouters(routes)
} else {
- appStore.toggleSideBarHide(true)
+ // appStore.toggleSideBarHide(true)
}
return routes
}
--
Gitblit v1.9.3