mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-12 06:28:42 +00:00
fix: 修复用户详情页面报错问题
This commit is contained in:
parent
fbe2b356fe
commit
f15ca7439c
@ -229,9 +229,9 @@ export default {
|
||||
{
|
||||
key: this.$t('users.Role'),
|
||||
formatter: (item, val) => {
|
||||
const org_roles_display = this.object.org_roles_display
|
||||
const system_roles_display = this.object.system_roles_display
|
||||
const roles_display = org_roles_display.split(', ').concat(system_roles_display.split(', '))
|
||||
const org_roles_display = this.object.org_roles_display || ''
|
||||
const system_roles_display = this.object.system_roles_display || ''
|
||||
const roles_display = org_roles_display?.split(', ').concat(system_roles_display?.split(', '))
|
||||
return <span> { roles_display.join(' | ') } </span>
|
||||
}
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ export default {
|
||||
{
|
||||
title: this.$t('users.tabs.grantedAssets'),
|
||||
name: 'UserGrantedAssets',
|
||||
hidden: () => !vm.$hasPerm('perms.view_myassets')
|
||||
hidden: () => !vm.$hasPerm('perms.view_userassets')
|
||||
},
|
||||
{
|
||||
title: this.$t('users.tabs.assetPermissionRules'),
|
||||
|
Loading…
Reference in New Issue
Block a user