Commit 3634fca8 by cherishsince

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

parent 24ead9f0
...@@ -260,6 +260,13 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => { ...@@ -260,6 +260,13 @@ const updateConversationTitle = async (conversation: ChatConversationVO) => {
message.success('重命名成功') message.success('重命名成功')
// 刷新列表 // 刷新列表
await getChatConversationList() await getChatConversationList()
// 过滤当前切换的
const filterConversationList = conversationList.value.filter(item => {
return item.id === conversation.id
})
if (filterConversationList.length > 0) {
emits('onConversationClick', filterConversationList[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