From 264e6d92b20346937f053bb4332339dedd8dfa2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 8 Sep 2025 22:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E6=8E=89=20=E5=89=AA=E8=BE=91?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=BC=B9=E7=AA=97=20=E5=BB=B6=E6=97=B6?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index a982984..1d8f051 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -181,9 +181,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps = successDescription: 'Editing plan generated successfully.', timeout: 3000 }); - setTimeout(() => { - notification.destroy(notificationKey); - }, 3000); + notification.destroy(notificationKey); // 触发回调,通知父组件计划生成完成 onEditPlanGenerated?.();