diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index ec6cbc7..b045e97 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -81,6 +81,7 @@ export default class extends Vue { @Prop({ default: '' }) private basePath!: string get alwaysShowRootMenu() { + console.log('alwaysShowRootMenu', this.item) if (this.item.meta && this.item.meta.alwaysShow) { return true } diff --git a/src/router/modules/game.ts b/src/router/modules/game.ts index 7265fa2..8c3dc0a 100644 --- a/src/router/modules/game.ts +++ b/src/router/modules/game.ts @@ -7,7 +7,8 @@ const gameRoutes: RouteConfig = { meta: { title: 'game', icon: 'game', - alwaysShow: true + alwaysShow: true, + permissions: ['sysgame:*'] }, children: [ { diff --git a/src/router/modules/marketing.ts b/src/router/modules/marketing.ts index d99f28f..474fbb0 100644 --- a/src/router/modules/marketing.ts +++ b/src/router/modules/marketing.ts @@ -7,7 +7,8 @@ const marketingRoutes: RouteConfig = { meta: { title: 'marketing', icon: 'sell', - alwaysShow: true + alwaysShow: true, + permissions: ['coupon:*'] }, children: [ { diff --git a/src/router/modules/question.ts b/src/router/modules/question.ts index ffb8721..f914050 100644 --- a/src/router/modules/question.ts +++ b/src/router/modules/question.ts @@ -7,6 +7,7 @@ const questionRoutes: RouteConfig = { meta: { title: 'question', icon: 'question_list', + permissions: ['question:*', 'shop:tiku_setting'], alwaysShow: true }, children: [ diff --git a/src/router/modules/shop.ts b/src/router/modules/shop.ts index 5a83a39..9715dac 100644 --- a/src/router/modules/shop.ts +++ b/src/router/modules/shop.ts @@ -7,7 +7,8 @@ const shopRoutes: RouteConfig = { meta: { title: 'shop', icon: 'shop', - alwaysShow: true + alwaysShow: true, + permissions: ['shopadmin:*', 'shop:game_setting', 'activity:*'] }, children: [ { diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index d446c34..b2e3841 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -8,6 +8,7 @@ const systemRoutes: RouteConfig = { meta: { title: 'system', icon: 'component', + permissions: ['shopman:*', 'permission:*', 'admin:*', 'role:*'], alwaysShow: true }, children: [