import type { RouteRecordRaw } from 'vue-router' import { PageEnum } from '@/enums/pageEnum' const Layout = () => import('@/layout/index.vue') // 404 on a page export const ErrorPageRoute: RouteRecordRaw = { path: '/:path(.*)*', name: PageEnum.ERROR_PAGE_NAME, component: Layout, meta: { title: 'ErrorPage', hideBreadcrumb: true, }, children: [ { path: '/:path(.*)*', name: 'ErrorPageSon', component: () => import('@/views/exception/404.vue'), meta: { title: 'ErrorPage', hideBreadcrumb: true, }, }, ], } /** * 主页面 */ export const routeModuleList: Array = [ { path: '/dashboard', name: 'Dashboard', redirect: '/dashboard/index', component: Layout, meta: { title: '主控台', icon: 'wap-home', }, children: [ { path: 'index', name: 'DashboardPage', meta: { keepAlive: false, }, component: () => import('@/views/dashboard/index.vue'), }, ], }, ]