fix: 用户角色修改后更新页面与用户列表页显示不一致

This commit is contained in:
wangruidong
2023-12-28 14:05:43 +08:00
committed by Bryan
parent b19ddd6799
commit 0c9d5d9b6b

View File

@@ -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') {