嵌套路由 对应路由的嵌套路由中的组件会被渲染到这个路由的组件中的router-view Demo会被渲染到Index router-view const routes = [ { path: '/', component: Index children: [ { path: 'demo', component: Demo } ] } ]