1.配置子路由的映射关系:children 属性
// 2.配置映射关系
const routers=[
{
path:"/headers:username",
component:()=>import('../ceshi/headers.vue'),
children:[
// 配置子路由的映射关系
{
path:"",
component:()=>import(''),
}
]
},
{ path:"/mains",component:()=>import(/*webpackChunkName:"mains-chunk"*/'../ceshi/mains.vue')}
]