Vben
authored
|
1
2
3
4
5
6
7
8
9
10
11
|
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
const system: AppRouteModule = {
path: '/system',
name: 'System',
component: LAYOUT,
redirect: '/system/account',
meta: {
|
vben
authored
|
12
|
orderNo: 2000,
|
Vben
authored
|
13
14
15
16
17
18
|
icon: 'ion:settings-outline',
title: t('routes.demo.system.moduleName'),
},
children: [
{
path: 'account',
|
Vben
authored
|
19
|
name: 'AccountManagement',
|
Vben
authored
|
20
21
|
meta: {
title: t('routes.demo.system.account'),
|
|
22
|
ignoreKeepAlive: false,
|
Vben
authored
|
23
|
},
|
sanmu
authored
|
24
|
component: () => import('/@/views/project/system/account/index.vue'),
|
Vben
authored
|
25
|
},
|
Vben
authored
|
26
|
{
|
|
27
28
29
|
path: 'account_detail/:id',
name: 'AccountDetail',
meta: {
|
vben
authored
|
30
|
hideMenu: true,
|
|
31
32
33
34
35
|
title: t('routes.demo.system.account_detail'),
ignoreKeepAlive: true,
showMenu: false,
currentActiveMenu: '/system/account',
},
|
sanmu
authored
|
36
|
component: () => import('/@/views/project/system/account/AccountDetail.vue'),
|
|
37
38
|
},
{
|
Vben
authored
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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'),
},
{
|
Vben
authored
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
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'),
},
|
Vben
authored
|
75
76
77
78
|
],
};
export default system;
|