From 3634fca835335d341635bb3fe9099880486de176 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 21 May 2024 16:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A7=A3=E5=86=B3todo=E3=80=91AI=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E8=AF=9D=E6=A0=87=E9=A2=98=EF=BC=8C?= =?UTF-8?q?chat=20=E7=AA=97=E5=8F=A3=E4=B9=9F=E6=9B=B4=E6=96=B0=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/Conversation.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/ai/chat/Conversation.vue b/src/views/ai/chat/Conversation.vue index 5c929a12..b71846eb 100644 --- a/src/views/ai/chat/Conversation.vue +++ b/src/views/ai/chat/Conversation.vue @@ -260,6 +260,13 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => { message.success('重命名成功') // 刷新列表 await getChatConversationList() + // 过滤当前切换的 + const filterConversationList = conversationList.value.filter(item => { + return item.id === conversation.id + }) + if (filterConversationList.length > 0) { + emits('onConversationClick', filterConversationList[0]) + } } /**