From 93b1d725e3c24a4dbd92fb01b5b1cbdd95bc7609 Mon Sep 17 00:00:00 2001 From: bwstudio Date: Thu, 11 Jun 2026 21:17:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8=E5=88=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=A1=B6=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/router/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/router/index.js b/web/src/router/index.js index 8b3b0d1..0f1d2a3 100644 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -13,5 +13,9 @@ const routes = [ export default createRouter({ history: createWebHistory(), - routes + routes, + scrollBehavior() { + // 每次路由切换滚动到顶部 + return { top: 0 } + } })