Compare commits

..

2 Commits

Author SHA1 Message Date
wangxiaoshuang f8bd826c9c Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing Details
2025-01-21 17:12:45 +08:00
wangxiaoshuang e3f6f9107d 角色可切换选项不足时不显示切换角色按钮 2025-01-21 17:12:33 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -146,7 +146,11 @@ export default {
return this.$store.state.user.roles
},
hasRole() {
return this.roles && this.roles.length > 1
return (
this.roles &&
this.roles.length > 1 &&
this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1
)
},
},
watch: {