update 优化 菜单管理 增加激活菜单与扩展属性字段
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user