【解决todo】chat 默认选中对话
This commit is contained in:
parent
09c03abf51
commit
63693f7a83
@ -387,6 +387,8 @@ onMounted(async () => {
|
||||
// 首次默认选中第一个
|
||||
if (conversationList.value.length) {
|
||||
activeConversationId.value = conversationList.value[0].id
|
||||
// 回调 onConversationClick
|
||||
await emits('onConversationClick', conversationList.value[0])
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user