From 9b8baee48d0bdd95ea157be10e7c24711c511dc1 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 19 九月 2025 09:26:03 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/main.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/admin/src/main.js b/admin/src/main.js
index 0cac6e7..0ad3f03 100644
--- a/admin/src/main.js
+++ b/admin/src/main.js
@@ -67,13 +67,22 @@
this.$store.commit('resetMenus')
// 鑾峰彇鑿滃崟
const storeMenus = this.$store.state.menuData.list
+ const storeTopMenus = this.$store.state.topMenuList.list
if (storeMenus.length > 0 && this.homePage == null) {
this.setHomePage(storeMenus[0])
}
await fetchMenuTree()
- .then(menus => {
+ .then(allmenus => {
// 娣诲姞鑿滃崟
+ var menus = allmenus.filter(item => {
+ return item.type !== 1
+ })
+ var topList = allmenus.filter(item => {
+ return item.type === 1
+ })
+ console.log(topList)
storeMenus.push.apply(storeMenus, menus)
+ storeTopMenus.push.apply(storeTopMenus, topList)
// 娣诲姞璺敱
this.__addRouters(storeMenus)
// 404
--
Gitblit v1.9.3