【优化】AI 对话,切换的id问题
This commit is contained in:
parent
58d3d1ed9a
commit
1a681c2063
@ -116,9 +116,8 @@ const searchConversation = () => {
|
|||||||
const handleConversationClick = async (id: number) => {
|
const handleConversationClick = async (id: number) => {
|
||||||
// 切换对话
|
// 切换对话
|
||||||
activeConversationId.value = id
|
activeConversationId.value = id
|
||||||
|
|
||||||
const filterConversation = conversationList.value.filter(item => {
|
const filterConversation = conversationList.value.filter(item => {
|
||||||
return item.id !== id
|
return item.id === id
|
||||||
})
|
})
|
||||||
// 回调 onConversationClick
|
// 回调 onConversationClick
|
||||||
emits('onConversationClick', filterConversation[0])
|
emits('onConversationClick', filterConversation[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user