|
1
2
3
4
|
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
|
vben
authored
|
5
|
const dashboard: AppRouteModule = {
|
|
6
7
8
9
|
layout: {
path: '/dashboard',
name: 'Dashboard',
component: PAGE_LAYOUT_COMPONENT,
|
vben
authored
|
10
|
redirect: '/dashboard/workbench',
|
|
11
12
13
14
15
16
17
18
19
20
21
22
|
meta: {
icon: 'ant-design:home-outlined',
title: 'Dashboard',
},
},
routes: [
{
path: '/welcome',
name: 'Welcome',
component: () => import('/@/views/dashboard/welcome/index.vue'),
meta: {
|
vben
authored
|
23
24
25
26
27
28
29
30
31
|
title: '首页',
},
},
{
path: '/workbench',
name: 'Workbench',
component: () => import('/@/views/dashboard/workbench/index.vue'),
meta: {
title: '工作台',
|
|
32
33
34
|
affix: true,
},
},
|
vben
authored
|
35
36
37
38
39
40
41
42
|
{
path: '/analysis',
name: 'Analysis',
component: () => import('/@/views/dashboard/analysis/index.vue'),
meta: {
title: '分析页',
},
},
|
|
43
|
],
|
vben
authored
|
44
45
46
|
};
export default dashboard;
|