From a3a7a1c7c45e05b897b3d7965b57be51524e7834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 10 Mar 2022 18:52:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95rbac?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/audit/index.js | 6 ++---- src/router/console/index.js | 2 +- src/router/workspace/index.js | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/router/audit/index.js b/src/router/audit/index.js index f7d2aec0f..314ef78ab 100644 --- a/src/router/audit/index.js +++ b/src/router/audit/index.js @@ -14,7 +14,7 @@ export default { title: i18n.t('common.nav.Audits'), icon: 'el-icon-s-claim', showNavSwitcher: true, - permissions: ['rbac.view_audit'], + permissions: ['rbac.view_auditview'], view: 'audit' }, children: [ @@ -25,9 +25,7 @@ export default { meta: { icon: 'dashboard', title: i18n.t('route.Dashboard'), - permissions: [], - resource: 'common', - app: 'common' + permissions: [] } }, { diff --git a/src/router/console/index.js b/src/router/console/index.js index 6ffc37327..313f9d9dd 100644 --- a/src/router/console/index.js +++ b/src/router/console/index.js @@ -21,7 +21,7 @@ export default { view: 'console', type: 'view', showNavSwitcher: true, - permissions: ['rbac.view_console'] + permissions: ['rbac.view_adminview'] }, children: [ { diff --git a/src/router/workspace/index.js b/src/router/workspace/index.js index abe50e5f0..3a775f57d 100644 --- a/src/router/workspace/index.js +++ b/src/router/workspace/index.js @@ -15,7 +15,7 @@ export default { icon: 'el-icon-user-solid', showNavSwitcher: true, showOrganization: true, - permissions: ['rbac.view_workspace'] + permissions: ['rbac.view_userview'] }, children: [ // 404 page must be placed at the end !!!