forked from AkkomaGang/akkoma-fe
Remember positions on scroll.
This commit is contained in:
parent
2341a3692a
commit
ce0071d6e0
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ const routes = [
|
|||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes
|
||||
routes,
|
||||
scrollBehavior: (to, from, savedPosition) => {
|
||||
return savedPosition || { x: 0, y: 0 }
|
||||
}
|
||||
})
|
||||
|
||||
/* eslint-disable no-new */
|
||||
|
|
Loading…
Reference in a new issue