浏览代码

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

cherishsince 1 年之前
父节点
当前提交
63693f7a83
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/ai/chat/Conversation.vue

+ 2 - 0
src/views/ai/chat/Conversation.vue

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