import { createRouter, createWebHistory } from 'vue-router' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', component: () => import('@/layout/Home.vue'), children: [ { path: '/', name: 'index', meta: { title: '系统首页' }, component: () => import('@/views/index.vue') }, ] } ] }) export default router