Commit ce0071d6 authored by lain's avatar lain
Browse files

Remember positions on scroll.

parent 2341a369
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment