fix: 修改密码时 判断管理员校验规则失败

This commit is contained in:
feng
2023-06-15 11:29:03 +08:00
parent 8670c3988d
commit e63630fce7
2 changed files with 8 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ export default {
methods: {
afterGetUser(user) {
this.user = user
this.fieldsMeta.password.el.userIsOrgAdmin = user.role === 'Admin' || user.org_roles.indexOf('Admin') !== -1
this.fieldsMeta.password.el.userIsOrgAdmin = user['is_org_admin']
if (this.$route.query.clone_from) {
this.user.groups = []
}