我的路由:
const routerMap = [
{
path: '/',
redirect: 'dashboard',
component: Layout,
name:'Dashboard',
children: [
{
path: 'dashboard',
component: () => import('@/view/dashboard'),
name: 'Dashboard',
meta: { title: 'dashboard', icon: 'dashboard', noCache: true }
}
]
},{
path:'/test',
component:Layout,
redirect: '/test/index',
name:'Test',
meta:{title:'test',icon:'lock'},
children:[
{
path:'index',
component:()=>import('@/view/test'),
name:'test',
meta:{title:'test', icon: 'example', noCache: true }
},{ </