diff --git a/src/router/index.js b/src/router/index.js index 70c92526..d27fccf7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -293,6 +293,10 @@ const routes = [ const router = createRouter({ history: createWebHashHistory(process.env.BASE_URL), routes, + scrollBehavior() { + // always scroll to top + return { top: 0 } + }, }) export default router