2022-03-06 02:08:14 +08:00
|
|
|
import { RouteRecordRaw } from 'vue-router'
|
|
|
|
import { PreviewEnum } from '@/enums/pageEnum'
|
|
|
|
|
|
|
|
// 引入路径
|
|
|
|
const importPath = {
|
2022-10-20 14:46:19 +08:00
|
|
|
'PreviewEnum.CHART_PREVIEW_NAME': () => import('@/views/preview/wrapper.vue')
|
2022-03-06 02:08:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const chartRoutes: RouteRecordRaw = {
|
|
|
|
path: PreviewEnum.CHART_PREVIEW,
|
|
|
|
name: PreviewEnum.CHART_PREVIEW_NAME,
|
|
|
|
component: importPath['PreviewEnum.CHART_PREVIEW_NAME'],
|
|
|
|
meta: {
|
|
|
|
title: '预览',
|
|
|
|
isRoot: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default chartRoutes
|