Adjust scroll behavior on route change
This commit is contained in:
parent
673e05d6a6
commit
c95a7f32ee
|
|
@ -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}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue