vue-router-6-命名视图

Posted 不了无明

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
      }
    }
  ]
})

 

以上是关于vue-router-6-命名视图的主要内容,如果未能解决你的问题,请参考以下文章