From 1a1e53ae70dc1b35ba6b6dd103ec1c46fc93ad44 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Fri, 17 May 2024 17:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E4=B8=AD=E4=B8=80=E4=B8=AA=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/Conversation.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/ai/chat/Conversation.vue b/src/views/ai/chat/Conversation.vue index 75d9e2b3..7566e4d6 100644 --- a/src/views/ai/chat/Conversation.vue +++ b/src/views/ai/chat/Conversation.vue @@ -134,13 +134,17 @@ const getChatConversationList = async () => { return b.updateTime - a.updateTime }) conversationList.value = res - // 3、没有 任何对话情况 + // 3、默认选中 + if (!activeId?.value) { + await handleConversationClick(res[0].id) + } + // 4、没有 任何对话情况 if (conversationList.value.length === 0) { activeConversationId.value = null conversationMap.value = {} return } - // 4、对话根据时间分组(置顶、今天、一天前、三天前、七天前、30天前) + // 5、对话根据时间分组(置顶、今天、一天前、三天前、七天前、30天前) conversationMap.value = await conversationTimeGroup(conversationList.value) }