Skip to content

Commit

Permalink
chore : fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilsonxhero committed Jun 6, 2023
1 parent 71a09e5 commit f2de1aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const router = createRouter({
history: createWebHistory(),
routes,
scrollBehavior(to, from, savedPosition) {
let bd = document.body.classList;
bd.remove("overflow-hidden");
document.getElementById('app')!.scrollIntoView({ behavior: "smooth" });
// return { top: 0, behavior: "smooth" };
},
Expand Down

0 comments on commit f2de1aa

Please # to comment.