...
 
Commits (2)
......@@ -181,7 +181,7 @@
pointer-events: none;
filter: blur(10px);
opacity: .3;
position: fixed;
position: absolute;
top: -1rem;
left: -1rem;
right: -1rem;
......
......@@ -8,8 +8,11 @@ Vue.use(Router)
const router = new Router({
mode: 'history',
base: process.env.BASE_URL,
scrollBehavior () {
return { x: 0, y: 0 }
scrollBehavior (to, from) {
return {
x: 0,
y: from.name === to.name ? document.scrollingElement.scrollTop : 0
}
},
routes: [
{
......