fix(dept): 修复编辑弹窗闪屏
数据回填完成后再显示弹窗
This commit is contained in:
1 parent
5da3670608
commit
e8a22816ef
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user