[update] 修改bug87592
This commit is contained in:
@@ -134,11 +134,13 @@ export default {
|
||||
mixins: [JeroListMixin],
|
||||
computed: {
|
||||
...mapGetters(['userInfo']),
|
||||
// 当前用户是否管理员
|
||||
// 当前用户是否管理员或超级管理员
|
||||
isAdmin () {
|
||||
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
||||
const superAdminRoleList = window._CONFIG.superAdminRoleCode.split(',')
|
||||
const roleList = [...adminRoleList, ...superAdminRoleList]
|
||||
const userRoleList = this.userInfo.roleCode.split(',')
|
||||
return userRoleList.some(tt => adminRoleList.includes(tt))
|
||||
return userRoleList.some(tt => roleList.includes(tt))
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user