Commit 1a681c20 by cherishsince

【优化】AI 对话,切换的id问题

parent 58d3d1ed
...@@ -116,9 +116,8 @@ const searchConversation = () => { ...@@ -116,9 +116,8 @@ const searchConversation = () => {
const handleConversationClick = async (id: number) => { const handleConversationClick = async (id: number) => {
// 切换对话 // 切换对话
activeConversationId.value = id activeConversationId.value = id
const filterConversation = conversationList.value.filter(item => { const filterConversation = conversationList.value.filter(item => {
return item.id !== id return item.id === id
}) })
// 回调 onConversationClick // 回调 onConversationClick
emits('onConversationClick', filterConversation[0]) emits('onConversationClick', filterConversation[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment