From a5fa4140546a924d638464d6117f680da0159a77 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 25 八月 2025 15:52:52 +0800 Subject: [PATCH] 首页样式修改 --- src/main.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main.js b/src/main.js index 4ffb08e..7909a47 100644 --- a/src/main.js +++ b/src/main.js @@ -26,5 +26,9 @@ app.use(ElementPlus) app.use(createPinia()) app.use(router) - app.mount('#app') + +router.beforeEach((to, from, next) => { + window.scrollTo({ top: 0 }) // 灏嗘粴鍔ㄦ潯浣嶇疆璁句负0 + next() +}) -- Gitblit v1.9.1