vue-router-6-命名视图

//展示多个视图
<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
      }
    }
  ]
})
原文地址:https://www.cnblogs.com/avidya/p/7645103.html