提交 | 用户 | age
|
21d0ed
|
1 |
import type { AppRouteModule } from '/@/router/types'; |
V |
2 |
|
c303ec
|
3 |
import { getParentLayout, LAYOUT } from '/@/router/constant'; |
a0b05e
|
4 |
import { t } from '/@/hooks/web/useI18n'; |
21d0ed
|
5 |
|
fc4666
|
6 |
const charts: AppRouteModule = { |
c303ec
|
7 |
path: '/charts', |
V |
8 |
name: 'Charts', |
|
9 |
component: LAYOUT, |
|
10 |
redirect: '/charts/apexChart', |
|
11 |
meta: { |
37669d
|
12 |
icon: 'ion:bar-chart-outline', |
a0b05e
|
13 |
title: t('routes.demo.charts.charts'), |
21d0ed
|
14 |
}, |
c303ec
|
15 |
children: [ |
21d0ed
|
16 |
{ |
819bcb
|
17 |
path: 'apexChart', |
V |
18 |
name: 'ApexChart', |
|
19 |
meta: { |
|
20 |
title: t('routes.demo.charts.apexChart'), |
|
21 |
}, |
|
22 |
component: () => import('/@/views/demo/echarts/apex/index.vue'), |
|
23 |
}, |
|
24 |
{ |
c303ec
|
25 |
path: 'echarts', |
21d0ed
|
26 |
name: 'Echarts', |
c303ec
|
27 |
component: getParentLayout('Echarts'), |
21d0ed
|
28 |
meta: { |
V |
29 |
title: 'Echarts', |
|
30 |
}, |
819bcb
|
31 |
redirect: '/charts/echarts/map', |
21d0ed
|
32 |
children: [ |
V |
33 |
{ |
|
34 |
path: 'map', |
|
35 |
name: 'Map', |
|
36 |
component: () => import('/@/views/demo/echarts/Map.vue'), |
|
37 |
meta: { |
a0b05e
|
38 |
title: t('routes.demo.charts.map'), |
21d0ed
|
39 |
}, |
V |
40 |
}, |
|
41 |
{ |
|
42 |
path: 'line', |
|
43 |
name: 'Line', |
|
44 |
component: () => import('/@/views/demo/echarts/Line.vue'), |
|
45 |
meta: { |
a0b05e
|
46 |
title: t('routes.demo.charts.line'), |
21d0ed
|
47 |
}, |
V |
48 |
}, |
|
49 |
{ |
|
50 |
path: 'pie', |
|
51 |
name: 'Pie', |
|
52 |
component: () => import('/@/views/demo/echarts/Pie.vue'), |
|
53 |
meta: { |
a0b05e
|
54 |
title: t('routes.demo.charts.pie'), |
21d0ed
|
55 |
}, |
V |
56 |
}, |
|
57 |
], |
|
58 |
}, |
|
59 |
], |
fc4666
|
60 |
}; |
V |
61 |
|
|
62 |
export default charts; |