From 477c3bfa79402e5f88acae463c5a9a2f14580ffc Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Fri, 17 Apr 2026 16:06:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20sketch=E5=90=8C=E6=AD=A5=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/agent/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/home/agent/index.vue b/src/views/home/agent/index.vue index a130d55..2defabc 100644 --- a/src/views/home/agent/index.vue +++ b/src/views/home/agent/index.vue @@ -95,7 +95,7 @@ ) } - const handleGetProjectInfoAndHistory = () => { +const handleGetProjectInfoAndHistory = () => { sketchList.value = [] getProjectInfo({ id: route.params.id }).then((res) => { if (!res) { @@ -154,6 +154,7 @@ MyEvent.add('openUrls', handleOpenUrls) MyEvent.add('openSketch', handleOpenSketch) MyEvent.add('renameConversation', handleRenameConversation) + MyEvent.add('closeFlowCanvas', handleGetProjectInfoAndHistory) projectStore.clearProject() if (proJectId.value) { handleGetProjectInfoAndHistory() @@ -162,8 +163,9 @@ onUnmounted(() => { MyEvent.remove('openReport', handleOpenReport) MyEvent.remove('openUrls', handleOpenUrls) - MyEvent.remove('OpenSketch', handleOpenSketch) + MyEvent.remove('openSketch', handleOpenSketch) MyEvent.remove('renameConversation', handleRenameConversation) + MyEvent.remove('closeFlowCanvas', handleGetProjectInfoAndHistory) })