import { createRouter, createWebHistory } from 'vue-router'; import App from '../App.vue'; import HomeView from '../pages/HomeView.vue'; const routes = [ { path: '/', children: [ { path: '', component: HomeView }, ] } ]; const router = createRouter({ history: createWebHistory(), routes, }); export default router;