修改问题

This commit is contained in:
A1300399510
2023-07-26 18:12:59 +08:00
parent dff6345e33
commit 9303c12ab5
7 changed files with 78 additions and 25 deletions

View File

@@ -93,7 +93,10 @@ const routes = [
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
mode: "history",
routes
routes,
scrollBehavior(to, from, savedPosition) {
return { top: 0 };
},
})