forked from github/dataease
fix: 【ID1004552】【用户管理】编辑用户无法删除组织
This commit is contained in:
parent
21bdf84fdf
commit
d2459b4408
@ -285,6 +285,7 @@ export default {
|
||||
save() {
|
||||
this.$refs.createUserForm.validate(valid => {
|
||||
if (valid) {
|
||||
!this.form.deptId && (this.form.deptId = 0)
|
||||
const method = this.formType === 'add' ? addUser : editUser
|
||||
method(this.form).then(res => {
|
||||
this.$success(this.$t('commons.save_success'))
|
||||
|
Loading…
Reference in New Issue
Block a user