From 78469d99303de26265134b3cc2d61172c4547572 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Fri, 11 Apr 2025 10:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=BB=9A=E5=8A=A8=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/templates/index/interlocution.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/view/templates/index/interlocution.html b/view/templates/index/interlocution.html index 27a56f0..0a815a1 100644 --- a/view/templates/index/interlocution.html +++ b/view/templates/index/interlocution.html @@ -618,10 +618,11 @@ // aiMessageDiv.textContent = aiResponse; // 流式更新 aiMessageDiv.innerHTML = marked.parse(aiResponse);; // 流式更新 } - console.log($('.content-body'), '9898'); - aiMessageDiv.scrollIntoView({ - behavior: "smooth" - }); + document.getElementById('chatContainer').scrollTop = aiMessageDiv.scrollHeight + // console.log($('.content-body'), '9898'); + // aiMessageDiv.scrollIntoView({ + // behavior: "smooth" + // }); } conversations[currentConversationId].messages.push({ role: "assistant",