feat: scroll back to top on route change

This commit is contained in:
Sebin Nyshkim 2022-09-28 16:44:13 +02:00
parent 46a7b2833d
commit 9fe918136c

View file

@ -3,6 +3,9 @@ import HomeView from "../views/HomeView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
scrollBehavior: () => {
return { top: 0 };
},
routes: [
{
path: "/",