vue2项目,二级路由画面不显示,经检查:1.一级路由忘记加"/";2.二级路由的上级路由页面中没有添加

1、
{path: '/',component: Layout, -----------二级路由页面需要统一设置layoutredirect: '/dashboard',children: [{path: 'dashboard',name: 'Dashboard',component: () => import('@/views/dashboard/index'),meta: { title: 'Dashboard', icon: 'dashboard' }}]},
2、