消毒机设备
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.

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