vue 添加子路由,并对路由重定向
// 用户信息首页 { path: '/user/index', name: 'userIndex', component: userIndex, redirect: '/user/index/show', children: [ //个人信息展示 { path: 'show', name: 'userInformShow', component: InformShow }, //个人信息展示-提升 { path: 'improve', name: 'userInformImprove', component: InformImprove } ] }