From 1a681c206365bef8072f3c777370dd58832e14ba Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 16 May 2024 20:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91AI=20?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=EF=BC=8C=E5=88=87=E6=8D=A2=E7=9A=84id?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/Conversation.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/ai/chat/Conversation.vue b/src/views/ai/chat/Conversation.vue index 826e77d5..15f7a11d 100644 --- a/src/views/ai/chat/Conversation.vue +++ b/src/views/ai/chat/Conversation.vue @@ -116,9 +116,8 @@ const searchConversation = () => { const handleConversationClick = async (id: number) => { // 切换对话 activeConversationId.value = id - const filterConversation = conversationList.value.filter(item => { - return item.id !== id + return item.id === id }) // 回调 onConversationClick emits('onConversationClick', filterConversation[0])