fix(dept): 修复编辑弹窗闪屏

数据回填完成后再显示弹窗
This commit is contained in:
Ray.Hao committed 2026-11-25 22:21:59 +08:00
1 parent 5da3670608
commit e8a22816ef
1 file changed
+2 -1
+2 -1
View File
@@ -318,7 +318,7 @@ async function openDialog(parentId?: string, deptId?: string): Promise<void> {
},
];
dialogState.visible = true;
resetForm();
if (deptId) {
dialogState.title = "修改部门";
const form = await DeptAPI.getFormData(deptId);
@@ -327,6 +327,7 @@ async function openDialog(parentId?: string, deptId?: string): Promise<void> {
dialogState.title = "新增部门";
formData.parentId = parentId || "0";
}
dialogState.visible = true;
}
/**