perf(users): 修复全局组织用户组问题的

This commit is contained in:
ibuler
2021-05-17 18:18:12 +08:00
committed by Jiangjie.Bai
parent 328e068aca
commit b03af2c995

View File

@@ -150,6 +150,9 @@ export default {
const method = this.getMethod()
if (method === 'post' && !value.password_strategy) {
delete value['password']
if (this.currentOrgIsRoot) {
delete value['groups']
}
}
if (value.update_password !== undefined) {
delete value.update_password
@@ -166,6 +169,9 @@ export default {
},
afterGetUser(user) {
this.user = user
if (this.$route.query.clone_from) {
this.user.groups = []
}
}
}
}