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])