Explorar o código

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

cherishsince hai 1 ano
pai
achega
63693f7a83
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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])
     }
   }
 })