mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2025-10-13 13:43:53 +00:00
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
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<RouteRecordRaw> = [
|
|
{
|
|
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'),
|
|
},
|
|
],
|
|
},
|
|
]
|