【解决todo】AI 更新对话标题,chat 窗口也更新 title
This commit is contained in:
parent
24ead9f09b
commit
3634fca835
@ -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])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user