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

This commit is contained in:
cherishsince 2024-05-16 20:34:19 +08:00
parent 58d3d1ed9a
commit 1a681c2063

View File

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