[fix]修复了删除用户所属部门时,departments字段不会删除的问题 #19
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在提出此拉取请求时,我确认了以下几点(请复选框):
填写PR内容:
修复了删除用户所属部门时,departments字段不会删除的问题
使用该修复后,再次编辑出现异常的数据并且保存,异常数据会自动修复
BUG复现方法
人员管理 -> 用户管理 -> 挑选一个用户编辑 -> 编辑所属部门,并且重复勾选然后取消勾选部门 -> 触发bug, dialogFormData.departments 将会重复出现多次刚刚勾选的部门。并且提交表单时也会将错误的数据提交给服务器