角色可切换选项不足时不显示切换角色按钮
parent
e56440634e
commit
e3f6f9107d
|
@ -146,7 +146,11 @@ export default {
|
||||||
return this.$store.state.user.roles
|
return this.$store.state.user.roles
|
||||||
},
|
},
|
||||||
hasRole() {
|
hasRole() {
|
||||||
return this.roles && this.roles.length > 1
|
return (
|
||||||
|
this.roles &&
|
||||||
|
this.roles.length > 1 &&
|
||||||
|
this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1
|
||||||
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in New Issue