vue 嵌套路由

export default new Router({
    linkActiveClass: 'active',
    routes: [
        {
          path: '/hello',
          name: 'Hello',
          component: Hello
        },
        {
          path: '/heade',
          name: 'heade',
          component: heade,
      //info.vue和more.vue 会被渲染在 heade.vue 的 <router-view> 中 children:[ { path:
'/info', name: 'info', component: info }, { path: '/more', name: 'more', component: more } ] }, ] })

 

posted @ 2017-04-20 14:28  月月木有小情绪  阅读(151)  评论(0编辑  收藏  举报