Merge pull request #1439 from jumpserver/pr@dev@fix_menu_rbac

fix: 修改菜单rbac权限位
This commit is contained in:
feng626 2022-03-10 18:55:18 +08:00 committed by GitHub
commit 76d83aa24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -14,7 +14,7 @@ export default {
title: i18n.t('common.nav.Audits'), title: i18n.t('common.nav.Audits'),
icon: 'el-icon-s-claim', icon: 'el-icon-s-claim',
showNavSwitcher: true, showNavSwitcher: true,
permissions: ['rbac.view_audit'], permissions: ['rbac.view_auditview'],
view: 'audit' view: 'audit'
}, },
children: [ children: [
@ -25,9 +25,7 @@ export default {
meta: { meta: {
icon: 'dashboard', icon: 'dashboard',
title: i18n.t('route.Dashboard'), title: i18n.t('route.Dashboard'),
permissions: [], permissions: []
resource: 'common',
app: 'common'
} }
}, },
{ {

View File

@ -21,7 +21,7 @@ export default {
view: 'console', view: 'console',
type: 'view', type: 'view',
showNavSwitcher: true, showNavSwitcher: true,
permissions: ['rbac.view_console'] permissions: ['rbac.view_adminview']
}, },
children: [ children: [
{ {

View File

@ -15,7 +15,7 @@ export default {
icon: 'el-icon-user-solid', icon: 'el-icon-user-solid',
showNavSwitcher: true, showNavSwitcher: true,
showOrganization: true, showOrganization: true,
permissions: ['rbac.view_workspace'] permissions: ['rbac.view_userview']
}, },
children: [ children: [
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!