//展示多个视图
<router-view class="view one"></router-view> <router-view class="view two" name="a"></router-view>
const router = new VueRouter({
  routes: [
    {
      path: '/',
      components: {
        default: Foo,
        a: Bar
      }
    }
  ]
})

 

 posted on 2017-10-10 13:23  不了无明  阅读(627)  评论(0编辑  收藏  举报