Vben
2021-04-07 5b8eb4a49a097a47caf491c44df427522ab58daa
提交 | 用户 | 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     {
a9462f 17       path: 'baiduMap',
V 18       name: 'BaiduMap',
19       meta: {
20         title: t('routes.demo.charts.baiduMap'),
21       },
22       component: () => import('/@/views/demo/charts/map/Baidu.vue'),
23     },
24     {
25       path: 'aMap',
26       name: 'AMap',
27       meta: {
28         title: t('routes.demo.charts.aMap'),
29       },
68ceb2 30       component: () => import('/@/views/demo/charts/map/Gaode.vue'),
a9462f 31     },
V 32     {
33       path: 'googleMap',
34       name: 'GoogleMap',
35       meta: {
36         title: t('routes.demo.charts.googleMap'),
37       },
38       component: () => import('/@/views/demo/charts/map/Google.vue'),
39     },
40
41     {
c303ec 42       path: 'echarts',
21d0ed 43       name: 'Echarts',
c303ec 44       component: getParentLayout('Echarts'),
21d0ed 45       meta: {
V 46         title: 'Echarts',
47       },
819bcb 48       redirect: '/charts/echarts/map',
21d0ed 49       children: [
V 50         {
51           path: 'map',
52           name: 'Map',
a9462f 53           component: () => import('/@/views/demo/charts/Map.vue'),
21d0ed 54           meta: {
a0b05e 55             title: t('routes.demo.charts.map'),
21d0ed 56           },
V 57         },
58         {
59           path: 'line',
60           name: 'Line',
a9462f 61           component: () => import('/@/views/demo/charts/Line.vue'),
21d0ed 62           meta: {
a0b05e 63             title: t('routes.demo.charts.line'),
21d0ed 64           },
V 65         },
66         {
67           path: 'pie',
68           name: 'Pie',
a9462f 69           component: () => import('/@/views/demo/charts/Pie.vue'),
21d0ed 70           meta: {
a0b05e 71             title: t('routes.demo.charts.pie'),
21d0ed 72           },
V 73         },
74       ],
75     },
76   ],
fc4666 77 };
V 78
79 export default charts;