From 6bc654baed23f05dc43df339a3a9b83e824cf42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Tue, 12 Aug 2025 18:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B7=BB=E5=8A=A0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AE=B0=E5=BD=95=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homePage.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/homePage.vue b/src/views/homePage.vue index b17b71f..143bc91 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -186,10 +186,7 @@ const sendMessage = async () => { } isScrolling.value = false; - // 添加到历史记录 - if (historyRecordRef.value && message.value.trim()) { - historyRecordRef.value.addRecord(message.value.trim(), activeTab.value); - } + // 注意:历史记录会在消息发送后自动更新,无需手动添加 // 判断当前是否为 AiEmotion 组件 if (activeTab.value === "AiEmotion") {