import { RouteConfig } from 'vue-router'; const routes: RouteConfig[] = [ { path: '/', component: () => import('layouts/MainLayout.vue'), children: [ { name: 'home', path: '', component: () => import('pages/Index.vue') }, { name: 'about', path: 'about', component: () => import('pages/About.vue') } ] }, // Always leave this as last one, // but you can also remove it { path: '*', component: () => import('pages/Error404.vue') } ]; export default routes;