From b13c22021fca126ecf0a4fc1ac315cfecd668ed8 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期日, 24 八月 2025 15:57:41 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/xiehe_website --- src/main.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index ee1e505..7909a47 100644 --- a/src/main.js +++ b/src/main.js @@ -27,3 +27,8 @@ app.use(createPinia()) app.use(router) app.mount('#app') + +router.beforeEach((to, from, next) => { + window.scrollTo({ top: 0 }) // 灏嗘粴鍔ㄦ潯浣嶇疆璁句负0 + next() +}) -- Gitblit v1.9.1