From 7da4b2f83eeb2fb3eb1b2152204be4330bc949d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Wed, 1 Oct 2025 21:31:23 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E4=B9=9D=E5=A4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=8A=A0=E5=85=A5=E6=BB=9A=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E9=94=9A=E7=82=B9=E5=8A=9F=E8=83=BD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/deepNine.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index 0fecb5d..e7c8202 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -3165,7 +3165,17 @@ watch( ); const scrollToTop = () => { - chatStore.dbqbScrollToTop = !chatStore.dbqbScrollToTop; + // 滚动到顶部锚点 + const topAnchor = document.getElementById("deepNine-top-anchor"); + if (topAnchor) { + topAnchor.scrollIntoView({ behavior: "smooth" }); + } else { + // 保留原有逻辑作为备用 + chatStore.dbqbScrollToTop = !chatStore.dbqbScrollToTop; + } + + // 通知父组件滚动到顶部 + emit('scrollToBottom'); }; // 添加渲染所有K线图的方法 @@ -3347,6 +3357,7 @@ onUnmounted(() => {