From 5aec26911e6e55870541bbed545ff3a47a4609bd 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 3412fcc3..06af6908 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()