From be9fc1cb0f9eac1746ba998994545f04fccf7d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Wed, 20 Aug 2025 14:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=90=8E=E8=A7=A6=E5=8F=91=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index a596968..8b6b9b8 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -2138,6 +2138,12 @@ async function handleSendMessage(input, onComplete) { }); isRotating.value = false; messages.value = [...previousMessages, ...messages.value]; + + // 第一个接口请求失败后触发自动滚动 + nextTick(() => { + scrollToBottom(); + }); + // 调用完成回调,重新启用输入框 if (onComplete && typeof onComplete === "function") { onComplete();