update 优化 菜单管理 增加激活菜单与扩展属性字段

This commit is contained in:
疯狂的狮子Li
2026-04-08 11:49:53 +08:00
parent 029eb6636c
commit 81552f0cb9
4 changed files with 20 additions and 8 deletions

View File

@@ -97,8 +97,9 @@ const childrenMenus = computed(() => {
// 默认激活的菜单
const activeMenu = computed(() => {
let path = route.path;
if (path === '/index') {
const { meta } = route;
let path = meta.activeMenu || route.path;
if (path === '/index' || route.path === '/index') {
path = '/system/user';
}
let activePath = path;