huangyinfeng
2024-09-18 ccfd07feeaa670a3d56548d7fea0936e299df95b
提交 | 用户 | age
4d2fb0 1 import type { AppRouteModule } from '@/router/types';
37669d 2
4d2fb0 3 import { LAYOUT } from '@/router/constant';
X 4 import { t } from '@/hooks/web/useI18n';
37669d 5
V 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       },
4d2fb0 24       component: () => import('@/views/demo/system/account/index.vue'),
37669d 25     },
3b8ca4 26     {
59145a 27       path: 'vxeTableAccount',
28       name: 'VxeTableAccountManagement',
29       meta: {
30         title: t('routes.demo.system.vxeTableAccount'),
31         ignoreKeepAlive: false,
32       },
4d2fb0 33       component: () => import('@/views/demo/system/vxe-account/index.vue'),
59145a 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       },
4d2fb0 45       component: () => import('@/views/demo/system/account/AccountDetail.vue'),
0e414b 46     },
47     {
9a1ba7 48       path: 'role',
V 49       name: 'RoleManagement',
50       meta: {
51         title: t('routes.demo.system.role'),
52         ignoreKeepAlive: true,
53       },
4d2fb0 54       component: () => import('@/views/demo/system/role/index.vue'),
9a1ba7 55     },
V 56
57     {
58       path: 'menu',
59       name: 'MenuManagement',
60       meta: {
61         title: t('routes.demo.system.menu'),
62         ignoreKeepAlive: true,
63       },
4d2fb0 64       component: () => import('@/views/demo/system/menu/index.vue'),
9a1ba7 65     },
V 66     {
3b8ca4 67       path: 'dept',
V 68       name: 'DeptManagement',
69       meta: {
70         title: t('routes.demo.system.dept'),
71         ignoreKeepAlive: true,
72       },
4d2fb0 73       component: () => import('@/views/demo/system/dept/index.vue'),
3b8ca4 74     },
V 75     {
76       path: 'changePassword',
77       name: 'ChangePassword',
78       meta: {
79         title: t('routes.demo.system.password'),
80         ignoreKeepAlive: true,
81       },
4d2fb0 82       component: () => import('@/views/demo/system/password/index.vue'),
3b8ca4 83     },
37669d 84   ],
V 85 };
86
87 export default system;