一、代码展示 const router = new Router({ mode: 'history', base: process.env.BASE_URL, routes: [ { path: '/', component: () => import('.iews/Index'), name: "home", children: [ { path