//展示多个视图
<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
}
}
]
})
//展示多个视图
<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
}
}
]
})