fix(account): 创建账户时不传status字段,避免默认禁用的bug

This commit is contained in:
小蟑螂
2026-03-29 23:01:49 +08:00
parent aadbce9968
commit fffa64cc60
@@ -66,7 +66,6 @@ const formData = ref<AccountDTO.CreateAccountDTO & { status?: number }>({
departmentId: undefined, departmentId: undefined,
positionId: undefined, positionId: undefined,
remark: '', remark: '',
status: 0,
}); });
const departmentPath = ref<number[]>([]); const departmentPath = ref<number[]>([]);
const departmentTreeOptions = ref<DepartmentCascaderOption[]>([]); const departmentTreeOptions = ref<DepartmentCascaderOption[]>([]);
@@ -100,7 +99,6 @@ function resetForm() {
departmentId: undefined, departmentId: undefined,
positionId: undefined, positionId: undefined,
remark: '', remark: '',
status: 0,
}; };
departmentPath.value = []; departmentPath.value = [];
formRef.value?.resetFields(); formRef.value?.resetFields();