父级路由与子路由的path重复时,可将父级路由的name注释
export default new Router({
routes:[
{
path:'/',
component:Exaindex,
children:[
{
path:'/',
name:'exaList',
component:ExaList,
meta:{title:'首页'}
}
]
}
]
})