From 532b55472fae25a04c7acd9441c5097fd7bb418f Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Thu, 12 Jun 2025 00:52:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=B9=B3=E6=BB=91?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=8A=9F=E8=83=BD=E5=88=B0=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/about.vue | 59 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 19 deletions(-) diff --git a/pages/about.vue b/pages/about.vue index 3564647..6c22adc 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -12,6 +12,16 @@ onMounted(() => { sProgress.value = scrollTop / clientHeight; }); }); + +function scrollIntoView(id: string) { + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ + behavior: "smooth", + block: "start", + }); + } +}