- router scroll behaviour
This commit is contained in:
parent
be6bb2bdc4
commit
ed394e9587
4 changed files with 10 additions and 5 deletions
|
@ -60,6 +60,10 @@ const routes = [
|
|||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
// return desired position
|
||||
document.getElementById("app")?.scrollIntoView();
|
||||
},
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue