fix: 【ID1004552】【用户管理】编辑用户无法删除组织

This commit is contained in:
fit2cloud-chenyw 2021-06-23 11:30:03 +08:00
parent 21bdf84fdf
commit d2459b4408

View File

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