|
@@ -298,6 +298,7 @@ export default {
|
|
|
{ path: '/sys-config', label: '系统配置', icon: 'el-icon-s-tools', perm: 'system:base' },
|
|
{ path: '/sys-config', label: '系统配置', icon: 'el-icon-s-tools', perm: 'system:base' },
|
|
|
{ path: '/guide-config', label: '引导配置', icon: 'el-icon-setting', perm: 'system:base' },
|
|
{ path: '/guide-config', label: '引导配置', icon: 'el-icon-setting', perm: 'system:base' },
|
|
|
{ path: '/users', label: '用户管理', icon: 'el-icon-user', perm: 'system:users' },
|
|
{ path: '/users', label: '用户管理', icon: 'el-icon-user', perm: 'system:users' },
|
|
|
|
|
+ { path: '/menu-manage', label: '菜单管理', icon: 'el-icon-menu', perm: 'system:menu' },
|
|
|
{ path: '/operation-logs', label: '操作日志', icon: 'el-icon-s-order', perm: 'system:logs' },
|
|
{ path: '/operation-logs', label: '操作日志', icon: 'el-icon-s-order', perm: 'system:logs' },
|
|
|
{ path: '/membership-center', label: '会员中心', icon: 'el-icon-s-custom', perm: 'config:member' },
|
|
{ path: '/membership-center', label: '会员中心', icon: 'el-icon-s-custom', perm: 'config:member' },
|
|
|
{ path: '/badge-manage', label: '勋章管理', icon: 'el-icon-medal', perm: 'config:member' },
|
|
{ path: '/badge-manage', label: '勋章管理', icon: 'el-icon-medal', perm: 'config:member' },
|
|
@@ -399,13 +400,9 @@ export default {
|
|
|
activeMenu() {
|
|
activeMenu() {
|
|
|
return this.$route.path
|
|
return this.$route.path
|
|
|
},
|
|
},
|
|
|
- // 动态菜单优先,未加载/加载失败时回退硬编码 menuItems
|
|
|
|
|
- // B-7:按 title/path 去重,修复侧边栏菜单重复渲染 bug
|
|
|
|
|
|
|
+ // 菜单去重(B-7:按 title/path 去重,修复侧边栏菜单重复渲染 bug)
|
|
|
effectiveMenuItems() {
|
|
effectiveMenuItems() {
|
|
|
- const source = (this.dynamicMenuItems && this.dynamicMenuItems.length > 0)
|
|
|
|
|
- ? this.dynamicMenuItems
|
|
|
|
|
- : this.menuItems
|
|
|
|
|
- return this.dedupeMenuItems(source)
|
|
|
|
|
|
|
+ return this.dedupeMenuItems(this.menuItems)
|
|
|
},
|
|
},
|
|
|
currentRole() {
|
|
currentRole() {
|
|
|
return localStorage.getItem('role') || 'admin'
|
|
return localStorage.getItem('role') || 'admin'
|