-
Hello guys, I'm trying to set the scrollBehavior, but i'm failing to do it. I tried this:
It's failing with erros like I also tried:
But it's not good either as the page is not scrolling to the top. Thx |
Beta Was this translation helpful? Give feedback.
Answered by
frandiox
May 10, 2022
Replies: 1 comment 1 reply
-
export default viteSSR(
App,
{
routes,
routerOptions: {
scrollBehavior(...) {
return ...
}
},
transformState(state) {
return import.meta.env.SSR ? devalue(state) : state
},
},
() => {...}
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Lord-Y
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
routerOptions
is an object: