diff --git a/src/router/index.js b/src/router/index.js index 984ff87..2c27e6b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -42,6 +42,9 @@ const routes = [ const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes, + scrollBehavior() { + return { top: 0 }; + }, }); export default router;