From 5a9eed686fe1bf10a095e6b56fbef4188832fe00 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期二, 01 四月 2025 11:35:58 +0800
Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory
---
src/layouts/components/ElMenu/index.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/layouts/components/ElMenu/index.vue b/src/layouts/components/ElMenu/index.vue
index 5243b65..a703c65 100644
--- a/src/layouts/components/ElMenu/index.vue
+++ b/src/layouts/components/ElMenu/index.vue
@@ -28,9 +28,9 @@
};
},
mounted() {
-
// 获取所有定义的一级菜单和多级菜单
- this.routersList = routers.options.routes[0].children;
+ // 过滤掉登录路由,只获取主布局下的路由
+ this.routersList = routers.options.routes.find(route => route.path === '/').children;
},
};
</script>
--
Gitblit v1.7.1