Vue-Router - 03 嵌套路线和动态跳转
该篇涉及到 children,redirect,props,及动态跳转
嵌套路线之children属性
const RouterView = {
render: (h)=>(h('router-view'))
}
const User = {
template: `<div>
这是User页面组件
</div>`
}
const Article = {
template: `<div>
这是Article页面组件
</div>`
}
const routes = [
{
path: '/home',
name: 'Home',
component: RouterView,
redirect: '/home/user'
children<