【解决todo】AI 对话修改,避免切换对话

This commit is contained in:
cherishsince committed 2024-05-22 11:23:06 +08:00
1 parent fa4081d669
commit 689d92dc66
1 file changed
+4 -1
+4 -1
View File
@@ -281,7 +281,10 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => {
return item.id === conversation.id
})
if (filterConversationList.length > 0) {
emits('onConversationClick', filterConversationList[0])
// tip:避免切换对话
if (activeConversationId.value === filterConversationList[0].id) {
emits('onConversationClick', filterConversationList[0])
}
}
}