mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-29 20:15:41 +00:00
15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
|
import type { RouterConfig } from "@nuxt/schema";
|
||
|
|
||
|
export default <RouterConfig>{
|
||
|
scrollBehavior(to, from, savedPosition) {
|
||
|
console.log(to, from, savedPosition);
|
||
|
if (savedPosition) {
|
||
|
return savedPosition;
|
||
|
} else {
|
||
|
return {
|
||
|
top: 0,
|
||
|
};
|
||
|
}
|
||
|
},
|
||
|
};
|