sanmu
authored
|
1
2
3
4
|
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
|
sanmu
authored
|
5
|
import { RoleEnum } from '/@/enums/roleEnum';
|
sanmu
authored
|
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
const system: AppRouteModule = {
path: '/system',
name: 'System',
component: LAYOUT,
redirect: '/system/account',
meta: {
orderNo: 3,
icon: 'ion:settings-outline',
title: t('routes.demo.system.moduleName'),
},
children: [
{
path: 'account',
name: 'AccountManagement',
meta: {
title: t('routes.demo.system.account'),
|
sanmu
authored
|
23
|
roles: [RoleEnum.ADMIN],
|
sanmu
authored
|
24
25
26
27
|
ignoreKeepAlive: false,
},
component: () => import('/@/views/project/account/index.vue'),
},
|
sanmu
authored
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// {
// path: 'account_detail/:id',
// name: 'AccountDetail',
// meta: {
// hideMenu: true,
// title: t('routes.demo.system.account_detail'),
// ignoreKeepAlive: true,
// showMenu: false,
// currentActiveMenu: '/system/account',
// },
// component: () => import('/@/views/project/account/AccountDetail.vue'),
// },
{
path: 'changePassword',
name: 'ChangePassword',
meta: {
title: t('routes.demo.system.password'),
ignoreKeepAlive: true,
},
component: () => import('/@/views/demo/system/password/index.vue'),
},
|
sanmu
authored
|
49
|
{
|
sanmu
authored
|
50
51
|
path: 'config',
name: 'config',
|
sanmu
authored
|
52
|
meta: {
|
sanmu
authored
|
53
|
title: '系统配置',
|
sanmu
authored
|
54
|
ignoreKeepAlive: true,
|
sanmu
authored
|
55
|
roles: [RoleEnum.ADMIN],
|
sanmu
authored
|
56
|
},
|
sanmu
authored
|
57
|
component: () => import('/@/views/project/config/index.vue'),
|
sanmu
authored
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
},
// {
// path: 'role',
// name: 'RoleManagement',
// meta: {
// title: t('routes.demo.system.role'),
// ignoreKeepAlive: true,
// },
// component: () => import('/@/views/demo/system/role/index.vue'),
// },
// {
// path: 'menu',
// name: 'MenuManagement',
// meta: {
// title: t('routes.demo.system.menu'),
// ignoreKeepAlive: true,
// },
// component: () => import('/@/views/demo/system/menu/index.vue'),
// },
// {
// path: 'dept',
// name: 'DeptManagement',
// meta: {
// title: t('routes.demo.system.dept'),
// ignoreKeepAlive: true,
// },
// component: () => import('/@/views/demo/system/dept/index.vue'),
// },
// {
// path: 'changePassword',
// name: 'ChangePassword',
// meta: {
// title: t('routes.demo.system.password'),
// ignoreKeepAlive: true,
// },
// component: () => import('/@/views/demo/system/password/index.vue'),
// },
],
};
export default system;
|