scroll behavior
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* https://nuxtjs.org/docs/configuration-glossary/configuration-router/#scrollbehavior
|
* https://nuxtjs.org/docs/configuration-glossary/configuration-router/#scrollbehavior
|
||||||
* always scrollToTop but on index page
|
|
||||||
*/
|
*/
|
||||||
export default function (to, _from, savedPosition) {
|
export default function (to, _from, savedPosition) {
|
||||||
if (to.name === 'index') {
|
|
||||||
return savedPosition
|
|
||||||
}
|
|
||||||
return { x: 0, y: 0 }
|
return { x: 0, y: 0 }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user