1、vue-router 做嵌套路由传值的时候,跳转到product页面的时候,已经能够收到传过来的值,但是我想跳的是默认ProA ,做了redirect重定向,能够跳转到ProA页面,但是product获取不到传过来的值,比如说id的值,这种情况要怎么解决?
routes: [{ path: '/', name: 'Index', component: Index }, { path: '/product/:id', name: 'Product', redirect: '/product/:id/producta', component: Product, children: [{ path: 'producta', name: 'ProA', component: ProA }, { path: 'productb', name: 'ProB', component: ProB }, { path: 'productc', name: 'ProC', component: ProC }] } ]
xxxx1111
慕姐8265434