From fe7caed91d6da21a945f2025c9019dc7cd4d0d65 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 29 Sep 2025 18:28:05 +0800 Subject: [PATCH] fix(Embedded): Embedded scrolling error --- frontend/src/views/chat/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 3412fcc3a..06af69082 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -730,10 +730,12 @@ const sendMessage = async ($event: any = {}) => { loading.value = true isTyping.value = true - scrollTopVal = innerRef.value!.clientHeight - scrollTime = setInterval(() => { - scrollBottom() - }, 300) + if (isCompletePage.value) { + scrollTopVal = innerRef.value!.clientHeight + scrollTime = setInterval(() => { + scrollBottom() + }, 300) + } await assistantPrepareSend() const currentRecord = new ChatRecord() currentRecord.create_time = new Date()