From e8a22816ef4f0b52931584b9c1693ad38a6afab6 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Wed, 25 Nov 2026 22:21:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(dept):=20=E4=BF=AE=E5=A4=8D=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=BC=B9=E7=AA=97=E9=97=AA=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 数据回填完成后再显示弹窗 --- src/views/system/dept/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 43cb9533..e780e426 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -318,7 +318,7 @@ async function openDialog(parentId?: string, deptId?: string): Promise { }, ]; - 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 { dialogState.title = "新增部门"; formData.parentId = parentId || "0"; } + dialogState.visible = true; } /**