【解决todo】AI 更新对话标题,chat 窗口也更新 title

This commit is contained in:
cherishsince 2024-05-21 16:38:09 +08:00
parent 24ead9f09b
commit 3634fca835

View File

@ -260,6 +260,13 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => {
message.success('重命名成功')
//
await getChatConversationList()
//
const filterConversationList = conversationList.value.filter(item => {
return item.id === conversation.id
})
if (filterConversationList.length > 0) {
emits('onConversationClick', filterConversationList[0])
}
}
/**