消毒机设备
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.0 KiB

2 months ago
2 months ago
  1. // router/routes.ts
  2. import n_audit from 'assets/images/menuIcon/n-audit.svg'
  3. import n_debug from 'assets/images/menuIcon/n-debug.svg'
  4. import n_disinfect from 'assets/images/menuIcon/n-disinfect.svg'
  5. import n_formula from 'assets/images/menuIcon/n-formula.svg'
  6. import n_liquid from 'assets/images/menuIcon/n-liquid.svg'
  7. import n_seal from 'assets/images/menuIcon/n-seal.svg'
  8. import n_setting from 'assets/images/menuIcon/n-setting.svg'
  9. import s_audit from 'assets/images/menuIcon/s-audit.svg'
  10. import s_debug from 'assets/images/menuIcon/s-debug.svg'
  11. import s_disinfect from 'assets/images/menuIcon/s-disinfect.svg'
  12. import s_formula from 'assets/images/menuIcon/s-formula.svg'
  13. import s_liquid from 'assets/images/menuIcon/s-liquid.svg'
  14. import s_seal from 'assets/images/menuIcon/s-seal.svg'
  15. import s_setting from 'assets/images/menuIcon/s-setting.svg'
  16. import type { RouteRecordRaw } from 'vue-router'
  17. const authRoutes: RouteRecordRaw[] = [
  18. {
  19. path: '/home',
  20. name: 'home',
  21. component: () => import('views/home/index.vue'),
  22. meta: {
  23. isDefault: true,
  24. title: '消毒',
  25. icon: n_disinfect,
  26. activeIcon: s_disinfect,
  27. },
  28. children: [
  29. {
  30. path: 'config',
  31. name: 'config',
  32. component: () => import('components/home/config.vue'),
  33. },
  34. {
  35. path: 'chart',
  36. name: 'chart',
  37. component: () => import('views/home/chart.vue'),
  38. },
  39. ],
  40. },
  41. {
  42. path: '/liquid',
  43. name: 'liquid',
  44. component: () => import('views/liquid/index.vue'),
  45. meta: {
  46. isDefault: true,
  47. title: '消毒液',
  48. icon: n_liquid,
  49. activeIcon: s_liquid,
  50. keepAlive: true,
  51. },
  52. },
  53. {
  54. path: '/seal',
  55. name: 'seal',
  56. component: () => import('views/seal/index.vue'),
  57. meta: {
  58. isDefault: true,
  59. title: '密封测试',
  60. icon: n_seal,
  61. activeIcon: s_seal,
  62. },
  63. },
  64. {
  65. path: '/formula',
  66. name: 'formula',
  67. component: () => import('views/formula/index.vue'),
  68. meta: {
  69. isDefault: true,
  70. title: '配方',
  71. icon: n_formula,
  72. activeIcon: s_formula,
  73. },
  74. },
  75. {
  76. path: '/debug',
  77. name: 'debug',
  78. component: () => import('views/debug/index.vue'),
  79. meta: {
  80. isDefault: true,
  81. title: '测试',
  82. icon: n_debug,
  83. activeIcon: s_debug,
  84. },
  85. },
  86. {
  87. path: '/audit',
  88. name: 'audit',
  89. component: () => import('views/audit/index.vue'),
  90. meta: {
  91. isDefault: true,
  92. title: '审计',
  93. icon: n_audit,
  94. activeIcon: s_audit,
  95. },
  96. },
  97. {
  98. path: '/setting',
  99. name: 'setting',
  100. component: () => import('views/setting/index.vue'),
  101. meta: {
  102. isDefault: true,
  103. title: '设置',
  104. icon: n_setting,
  105. activeIcon: s_setting,
  106. },
  107. },
  108. ]
  109. const routes: RouteRecordRaw[] = [
  110. {
  111. path: '/login',
  112. name: 'login',
  113. component: () => import('../views/login/index.vue'),
  114. },
  115. {
  116. path: '/',
  117. component: () => import('../layouts/default.vue'),
  118. redirect: '/home',
  119. children: authRoutes,
  120. },
  121. ]
  122. export { authRoutes }
  123. export default routes