嵌套路由(就是路由后面接children),拼接路由(相当于多个组件一并使用),写在components里,要拼接几个就写几个,然后<router-view></router-view>个数要与 拼接路由个数相同,代码如下 router里index import login from '@/view/login' import hello from '@/components/HelloWorld' import aa from '@/components/aa' import bb from '@/components/bb' export default new Router({ routes:[{ path: '/login', name: 'login', component: login, children: [{ path: 'login1', components: { default: hello, a: aa, b: bb } }] }] }), login页面使用三个导入的组件 <router-view ></router-view>//没有name所以components写的是default:hello <router-view name="a"></router-view> <router-view name="b"></router-view> 总结