system.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. orderNo: 2000,
  11. icon: 'ion:settings-outline',
  12. title: t('routes.demo.system.moduleName'),
  13. },
  14. children: [
  15. {
  16. path: 'account',
  17. name: 'AccountManagement',
  18. meta: {
  19. title: t('routes.demo.system.account'),
  20. ignoreKeepAlive: false,
  21. },
  22. component: () => import('/@/views/dashboard/system/account/index.vue'),
  23. },
  24. {
  25. path: 'account_detail/:id',
  26. name: 'AccountDetail',
  27. meta: {
  28. hideMenu: true,
  29. title: t('routes.demo.system.account_detail'),
  30. ignoreKeepAlive: true,
  31. showMenu: false,
  32. currentActiveMenu: '/system/account',
  33. },
  34. component: () => import('/@/views/dashboard/system/account/AccountDetail.vue'),
  35. },
  36. {
  37. path: 'role',
  38. name: 'RoleManagement',
  39. meta: {
  40. title: t('routes.demo.system.role'),
  41. ignoreKeepAlive: true,
  42. },
  43. component: () => import('/@/views/dashboard/system/role/index.vue'),
  44. },
  45. {
  46. path: 'menu',
  47. name: 'MenuManagement',
  48. meta: {
  49. title: t('routes.demo.system.menu'),
  50. ignoreKeepAlive: true,
  51. },
  52. component: () => import('/@/views/dashboard/system/menu/index.vue'),
  53. },
  54. {
  55. path: 'dept',
  56. name: 'DeptManagement',
  57. meta: {
  58. title: t('routes.demo.system.dept'),
  59. ignoreKeepAlive: true,
  60. },
  61. component: () => import('/@/views/dashboard/system/dept/index.vue'),
  62. },
  63. // {
  64. // path: 'changePassword',
  65. // name: 'ChangePassword',
  66. // meta: {
  67. // title: t('routes.demo.system.password'),
  68. // ignoreKeepAlive: true,
  69. // },
  70. // component: () => import('/@/views/dashboard/system/password/index.vue'),
  71. // },
  72. ],
  73. };
  74. export default system;