Commit 63693f7a by cherishsince

【解决todo】chat 默认选中对话

parent 09c03abf
...@@ -387,6 +387,8 @@ onMounted(async () => { ...@@ -387,6 +387,8 @@ onMounted(async () => {
// 首次默认选中第一个 // 首次默认选中第一个
if (conversationList.value.length) { if (conversationList.value.length) {
activeConversationId.value = conversationList.value[0].id activeConversationId.value = conversationList.value[0].id
// 回调 onConversationClick
await emits('onConversationClick', conversationList.value[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