From 0306f22911903e322b8e2cde2b12bc9a76531ff4 Mon Sep 17 00:00:00 2001 From: seaHi Date: Sun, 27 Sep 2026 21:32:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E6=82=AC=E6=B5=AE=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/admin/+layout.svelte | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/routes/admin/+layout.svelte b/src/routes/admin/+layout.svelte index 72d113c..b3001ae 100644 --- a/src/routes/admin/+layout.svelte +++ b/src/routes/admin/+layout.svelte @@ -32,6 +32,9 @@ function handleOverlayClick() { isMobileSidebarOpen = false; } + function scrollToTop() { + window.scrollTo({ top: 0, behavior: 'smooth' }); + } @@ -177,6 +180,34 @@ + + +