mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 15:52:32 +00:00
fix: 用户角色修改后更新页面与用户列表页显示不一致
This commit is contained in:
@@ -174,6 +174,11 @@ export default {
|
|||||||
return 'post'
|
return 'post'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
afterGetFormValue(obj) {
|
||||||
|
obj.org_roles = obj.org_roles.map(({ id }) => id)
|
||||||
|
obj.system_roles = obj.system_roles.map(({ id }) => id)
|
||||||
|
return obj
|
||||||
|
},
|
||||||
cleanFormValue(value) {
|
cleanFormValue(value) {
|
||||||
const method = this.submitMethod()
|
const method = this.submitMethod()
|
||||||
if (method === 'post' && value.password_strategy === 'email') {
|
if (method === 'post' && value.password_strategy === 'email') {
|
||||||
|
Reference in New Issue
Block a user