From a9c58b259090bdf1071474c4d0d19dbd3e339e53 Mon Sep 17 00:00:00 2001 From: AN <1983933789@qq.com> Date: Wed, 23 Jul 2025 14:20:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E6=8A=BD?= =?UTF-8?q?=E5=B1=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/task/all-task-waiting/index.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/views/workflow/task/all-task-waiting/index.vue b/src/views/workflow/task/all-task-waiting/index.vue index 282c0069..4e4beed0 100644 --- a/src/views/workflow/task/all-task-waiting/index.vue +++ b/src/views/workflow/task/all-task-waiting/index.vue @@ -212,27 +212,25 @@ const modules = import.meta.glob('@/components/workflow/**/*.vue'); const businessId = ref(); async function handleView(row: Api.Workflow.TaskOrHisTask) { + dynamicComponent.value = null; + viewVisible.value = false; businessId.value = row.businessId; const formPath = row.formPath; - if (!formPath) { - return; - } + if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showViewDrawer(); + setTimeout(() => { + showViewDrawer(); + }, 300); } const taskId = ref(''); const assigneeIds = ref([]); const assigneeNames = ref([]); function handleIntervene(row: Api.Workflow.Task) { - dynamicComponent.value = null; - interveneVisible.value = false; taskId.value = row.id; assigneeIds.value = row.assigneeIds?.split(',') || []; assigneeNames.value = row.assigneeNames?.split(',') || []; - setTimeout(() => { - showInterveneDrawer(); - }, 300); + showInterveneDrawer(); }