import { createRouter, createWebHistory } from 'vue-router'; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', component: () => import('@/layout/Router.vue'), children: [ { path: '/', name: 'home', component: () => import('@/views/HomeView.vue'), }, { path: '/swagger', name: 'api', component: () => import('@/views/SwaggerView.vue'), }, ], }, ], }); export { router };