From 04dc3848a7459f41dfe9a97f750bf79256ff83b7 Mon Sep 17 00:00:00 2001 From: zhl Date: Sat, 8 May 2021 16:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95=E5=9C=A8?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E6=9D=83=E9=99=90=E9=85=8D=E7=BD=AE=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/SidebarItem.vue | 1 + src/router/modules/game.ts | 3 ++- src/router/modules/marketing.ts | 3 ++- src/router/modules/question.ts | 1 + src/router/modules/shop.ts | 3 ++- src/router/modules/system.ts | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) 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: [