system.ts 1.9 KB

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