From 46d7fff01ee0a3b2d12b91258df0d918acbb2bf0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JKIE562\\PC" <1013397054@qq.com> Date: Wed, 20 May 2026 09:54:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96chat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/ChatView.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/src/views/ChatView.vue b/frontend/src/views/ChatView.vue index 58b367a8..11cea0ec 100644 --- a/frontend/src/views/ChatView.vue +++ b/frontend/src/views/ChatView.vue @@ -1128,16 +1128,6 @@ const scrollChatToBottom = async () => { }); }; -const scrollToMessage = async (index: number) => { - await nextTick(); - const container = chatScrollContainer.value; - if (!container) return; - const el = container.querySelector(`[data-msg-index="${index}"]`) as HTMLElement | null; - if (el) { - el.scrollIntoView({ behavior: 'smooth', block: 'start' }); - } -}; - const scrollToUserQuestion = async () => { if (scrollToBottomFrame !== null) { window.cancelAnimationFrame(scrollToBottomFrame); @@ -1308,7 +1298,6 @@ const handleSend = async (textOrEvent?: string | Event) => { return; } - const userMsgIndex = messages.value.length; await sendMessage(content, agentId, selectedKb.value); if (!conversationId.value && history.value.length === 0) {