mirror of
https://github.com/hay-kot/homebox.git
synced 2025-10-22 09:24:23 +00:00
other fixes
This commit is contained in:
parent
b5b65af6b4
commit
25e01d9606
5 changed files with 66 additions and 33 deletions
14
frontend/app/router.options.ts
Normal file
14
frontend/app/router.options.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
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,
|
||||
};
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue