石墨仪设备 前端仓库
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.

72 lines
1.9 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. import UserManage from '@/views/userManage/UserManage.vue'
  3. import Debug from '@/views/debug/debug.vue'
  4. const router = createRouter({
  5. history: createWebHistory(import.meta.env.BASE_URL),
  6. routes: [
  7. {
  8. path: '/login',
  9. name: 'login',
  10. //@ts-ignore
  11. component: () => import('../views/login/index.vue'),
  12. },
  13. {
  14. path: '/test',
  15. name: 'test',
  16. component: () => import('../views/Test.vue'),
  17. },
  18. {
  19. path: '/home',
  20. name: 'home',
  21. // route level code-splitting
  22. // this generates a separate chunk (About.[hash].js) for this route
  23. // which is lazy-loaded when the route is visited.
  24. component: () => import('../views/home/index.vue'),
  25. children:[
  26. {
  27. path: '/graphite',
  28. name: 'graphite',
  29. component: () => import('../views/graphite/index.vue'),
  30. },
  31. {
  32. path: '/logRecords',
  33. name: 'logRecords',
  34. component: () => import('../views/logRecord/index.vue'),
  35. },
  36. {
  37. path: '/expeRecords',
  38. name: 'expeRecords',
  39. component: () => import('../views/expeRecord/index.vue'),
  40. },
  41. {
  42. path: '/addLiquid',
  43. name: 'addLiquid',
  44. component: () => import('../views/addLiquid/index.vue'),
  45. },
  46. {
  47. path: '/liquidConfig',
  48. name: 'liquidConfig',
  49. component: () => import('../views/liquidConfig/index.vue'),
  50. },
  51. {
  52. path: '/oreManage',
  53. name: 'oreManage',
  54. component: () => import('../views/oreManage/index.vue'),
  55. },
  56. {
  57. path: '/userManage',
  58. name: 'userManage',
  59. component: UserManage
  60. },
  61. {
  62. path: '/debug',
  63. name: 'debug',
  64. component: Debug
  65. }
  66. ]
  67. },
  68. ],
  69. })
  70. export default router