黄小民
2023-11-02 59145ade255ee752a7c8d8995634ec172a7f60c8
提交 | 用户 | age
37669d 1 import type { AppRouteModule } from '/@/router/types';
V 2
3 import { LAYOUT } from '/@/router/constant';
4 import { t } from '/@/hooks/web/useI18n';
5
6 const system: AppRouteModule = {
7   path: '/system',
8   name: 'System',
9   component: LAYOUT,
10   redirect: '/system/account',
11   meta: {
913c22 12     orderNo: 2000,
37669d 13     icon: 'ion:settings-outline',
V 14     title: t('routes.demo.system.moduleName'),
15   },
16   children: [
17     {
18       path: 'account',
3b8ca4 19       name: 'AccountManagement',
37669d 20       meta: {
V 21         title: t('routes.demo.system.account'),
0e414b 22         ignoreKeepAlive: false,
37669d 23       },
V 24       component: () => import('/@/views/demo/system/account/index.vue'),
25     },
3b8ca4 26     {
59145a 27       path: 'vxeTableAccount',
28       name: 'VxeTableAccountManagement',
29       meta: {
30         title: t('routes.demo.system.vxeTableAccount'),
31         ignoreKeepAlive: false,
32       },
33       component: () => import('/@/views/demo/system/vxe-account/index.vue'),
34     },
35     {
0e414b 36       path: 'account_detail/:id',
37       name: 'AccountDetail',
38       meta: {
913c22 39         hideMenu: true,
0e414b 40         title: t('routes.demo.system.account_detail'),
41         ignoreKeepAlive: true,
42         showMenu: false,
43         currentActiveMenu: '/system/account',
44       },
45       component: () => import('/@/views/demo/system/account/AccountDetail.vue'),
46     },
47     {
9a1ba7 48       path: 'role',
V 49       name: 'RoleManagement',
50       meta: {
51         title: t('routes.demo.system.role'),
52         ignoreKeepAlive: true,
53       },
54       component: () => import('/@/views/demo/system/role/index.vue'),
55     },
56
57     {
58       path: 'menu',
59       name: 'MenuManagement',
60       meta: {
61         title: t('routes.demo.system.menu'),
62         ignoreKeepAlive: true,
63       },
64       component: () => import('/@/views/demo/system/menu/index.vue'),
65     },
66     {
3b8ca4 67       path: 'dept',
V 68       name: 'DeptManagement',
69       meta: {
70         title: t('routes.demo.system.dept'),
71         ignoreKeepAlive: true,
72       },
73       component: () => import('/@/views/demo/system/dept/index.vue'),
74     },
75     {
76       path: 'changePassword',
77       name: 'ChangePassword',
78       meta: {
79         title: t('routes.demo.system.password'),
80         ignoreKeepAlive: true,
81       },
82       component: () => import('/@/views/demo/system/password/index.vue'),
83     },
37669d 84   ],
V 85 };
86
87 export default system;