mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf(users): 修复全局组织用户组问题的
This commit is contained in:
@@ -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 = []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user