From 5967652081d92180adbc78da809c26cff5cf730a Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期日, 24 八月 2025 14:18:10 +0800 Subject: [PATCH] 搜索页面 --- src/main.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 9afd31e..cee586f 100644 --- a/src/main.js +++ b/src/main.js @@ -33,3 +33,8 @@ // }) app.use(ElementPlus, { locale }) app.mount('#app') + +router.beforeEach((to, from, next) => { + window.scrollTo({ top: 0 }) // 灏嗘粴鍔ㄦ潯浣嶇疆璁句负0 + next() +}) -- Gitblit v1.9.1