diff --git a/client/src/router/index.js b/client/src/router/index.js index 09214131..a7c932b4 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -29,5 +29,8 @@ const routes = [ Vue.use(Router) export default new Router({ routes, - mode: 'history' + mode: 'history', + scrollBehavior(to, from, savedPosition) { + return {x: 0, y: 0} + } })