import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' const routes: Array = [ { path: '/home', name: 'home', component: () => import('../views/Home.vue'), meta: { title: 'Home', }, }, { path: '/about', name: 'about', component: () => import('../views/About.vue'), meta: { title: 'About', }, } ] const router = createRouter({ history: createWebHistory(), routes, scrollBehavior(to, from, savedPosition) { return { el: '#app', top: 0, behavior: 'smooth', } }, }) export default router