diff --git a/src/router/index.js b/src/router/index.js index 9e736c9..93b7522 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -336,13 +336,15 @@ export const dynamicRoutes = [ } ] }, - // 系统管理 + // Jarvis 扩展:超级管理员(路径禁止使用 /system,否则与后端「系统管理」path 冲突, + // permission.js 按 path 合并时后端整棵系统菜单会被丢弃,侧栏只剩本段唯一子路由且单子级会顶格展示,表现为「系统管理消失」) { - path: '/system', + path: '/jarvis-super', component: Layout, redirect: 'noredirect', - name: 'System', - meta: { title: '系统管理', icon: 'system' }, + name: 'JarvisSuper', + alwaysShow: true, + meta: { title: '扩展管理', icon: 'system' }, permissions: ['system:admin:list'], children: [ {