From 689d92dc66db244a58041d9fc4ea70142b0d5e62 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Wed, 22 May 2024 11:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A7=A3=E5=86=B3todo=E3=80=91AI=20?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E4=BF=AE=E6=94=B9=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/Conversation.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/ai/chat/Conversation.vue b/src/views/ai/chat/Conversation.vue index cc061254..46988a63 100644 --- a/src/views/ai/chat/Conversation.vue +++ b/src/views/ai/chat/Conversation.vue @@ -281,7 +281,10 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => { return item.id === conversation.id }) if (filterConversationList.length > 0) { - emits('onConversationClick', filterConversationList[0]) + // tip:避免切换对话 + if (activeConversationId.value === filterConversationList[0].id) { + emits('onConversationClick', filterConversationList[0]) + } } }