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

This commit is contained in:
cherishsince 2024-05-22 11:23:06 +08:00
parent fa4081d669
commit 689d92dc66

View File

@ -281,7 +281,10 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => {
return item.id === conversation.id return item.id === conversation.id
}) })
if (filterConversationList.length > 0) { if (filterConversationList.length > 0) {
emits('onConversationClick', filterConversationList[0]) // tip
if (activeConversationId.value === filterConversationList[0].id) {
emits('onConversationClick', filterConversationList[0])
}
} }
} }