老师,那为什么这里的子路由要带'/'呢?
{
path:'/',
name:'home',
component:Home,
redirect:'/index',
children:[
{
path: '/index',
name: 'index',
component: Index,
}, {
path: '/product/:id',
name: 'product',
component: Product,
}, {
path: '/detail/:id',
name: 'detail',
component: Detail,
}
]
}