From 9b647856a2c1efc9bafd04cf331de16ffd836c7c Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 2 Mar 2026 17:35:07 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/agent/components/Agent.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/home/agent/components/Agent.vue b/src/views/home/agent/components/Agent.vue index 7e687cb..b703e9b 100644 --- a/src/views/home/agent/components/Agent.vue +++ b/src/views/home/agent/components/Agent.vue @@ -363,14 +363,24 @@ const setChatInfo = (info) => { // 先清空列表 const data = info.conversation - const project = info.project + let project = info.project + if (info.id) { + project = info + } + const initialData = agentStore.getInitialProjectData + + if (initialData) { + return + } messageList.value = [] params.versionID = '' sketchList.value = [] - params.configParams.type = project.type - params.configParams.region = project.area - params.configParams.style = project.style - params.configParams.temperature = project.temperature + if (project) { + params.configParams.type = project.type + params.configParams.region = project.area + params.configParams.style = project.style + params.configParams.temperature = project.temperature + } // 如果没有数据,直接返回 if (!data) return