mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
scroll behavior
This commit is contained in:
parent
13e5427f3c
commit
8981740620
1 changed files with 0 additions and 4 deletions
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue