Open openks opened 6 years ago
完全实现需求
{
path: 'user',
component: {
template: ' <router-view></router-view>',
name: 'UserListWrapper'
},
children: [
{
path: '',
name: 'UserList',
component: UserList
},
{
path: ':id',
component: {
template: ' <router-view></router-view>',
name: 'UserWraper'
},
children: [
{
path: '',
name: 'UserDetail',
component: UserDetail
},
{
path: 'edit',
name: 'UserEdit',
component: UserEdit
}
]
}
]
}