routes.ts
routes.ts
import childrenRoutes from '@/router/child-routes'
const Layout = () => import('@/components/Layout/index.vue')
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'Root',
redirect: {
name: 'GroupProjectRoot'
}
},
...childrenRoutes,
{
path: '/:pathMatch(.*)',
name: '404',
component: () => import('@/components/404.vue')
}
]
export default routes