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