const constantRoutes: Array<RouteRecordRaw> = [
{
path: '/:catchAll(.*)',
redirect: '/home',
meta: {
menuHide: true
}
},
{
path: '/',
name: 'home',
component: BasicLayout,
redirect: '/home',
meta: {
title: '首页',
menuHide: true // 不显示在左侧菜单栏
},
children: [
{
path: 'home',
name: 'Home',
component: () => import('@/views/Home.vue')
}
]
}
]