diff --git a/frontend/src/views/system/user/form.vue b/frontend/src/views/system/user/form.vue index 3625f02145..2fddc7d438 100644 --- a/frontend/src/views/system/user/form.vue +++ b/frontend/src/views/system/user/form.vue @@ -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'))