From e0b38f580464cace0aa7dae227aa17c4b96f78ce Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 16 May 2024 18:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91AI=20Chat?= =?UTF-8?q?=20=E5=AF=B9=E8=AF=9D=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 735e5c90..46b7b336 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -179,8 +179,7 @@ function handleScroll() { const scrollTop = scrollContainer.scrollTop const scrollHeight = scrollContainer.scrollHeight const offsetHeight = scrollContainer.offsetHeight - - if (scrollTop + offsetHeight < scrollHeight) { + if ((scrollTop + offsetHeight) < (scrollHeight - 50)) { // 用户开始滚动并在最底部之上,取消保持在最底部的效果 isScrolling.value = true } else {