index.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import { createRouter, createWebHashHistory } from 'vue-router'
  2. import Home from '../views/Home/Home.vue'
  3. const routes = [
  4. {
  5. path: '/',
  6. name: 'Home',
  7. component: Home
  8. },
  9. {
  10. path: '/about',
  11. name: 'About',
  12. component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  13. },
  14. {
  15. path: '/status', // 状态监视
  16. name: 'Status',
  17. component: () => import(/* webpackChunkName: "status" */ '../views/Status/Status.vue')
  18. },
  19. {
  20. path: '/agc', // AGC 监视
  21. name: 'Agc',
  22. component: () => import(/* webpackChunkName: "agc" */ '../views/Agc/Agc.vue')
  23. },
  24. {
  25. path: '/windsite',
  26. name: 'WindSite',
  27. component: () => import(/* webpackChunkName: "windsite" */ '../views/WindSite/WindSite.vue'),
  28. children: [{
  29. path: 'home',
  30. component: () => import(/* webpackChunkName: "windsitehome" */ '../views/WindSite/pages/Home/Home.vue')
  31. }, {
  32. path: 'draughtfanlist',
  33. component: () => import(/* webpackChunkName: "windsitedraughtfanlist" */ '../views/WindSite/pages/DraughtFanList.vue')
  34. }, {
  35. path: 'matrix',
  36. component: () => import(/* webpackChunkName: "windsitematrix" */ '../views/WindSite/pages/Matrix.vue')
  37. }, {
  38. path: 'lightmatrix',
  39. component: () => import(/* webpackChunkName: "windsitelightmatrix" */ '../views/WindSite/pages/LightMatrix.vue')
  40. }, {
  41. path: 'box',
  42. component: () => import(/* webpackChunkName: "windsitebox" */ '../views/WindSite/pages/Box.vue')
  43. }, {
  44. path: 'Info',
  45. component: () => import(/* webpackChunkName: "windsitebox" */ '../views/WindSite/pages/Info/Info.vue')
  46. }, {
  47. path: 'tower',
  48. component: () => import(/* webpackChunkName: "windsitetower" */ '../views/WindSite/pages/Tower.vue')
  49. }]
  50. },
  51. {
  52. path: '/lightmatrix', // 光伏明细矩阵
  53. name: 'LightMatrix',
  54. component: () => import(/* webpackChunkName: "lightmatrix" */ '../views/LightMatrix/LightMatrix.vue')
  55. },
  56. {
  57. path: '/lightmatrix1', // 基础矩阵
  58. name: 'LightMatrix1',
  59. component: () => import(/* webpackChunkName: "lightmatrix1" */ '../views/LightMatrix1/LightMatrix1.vue')
  60. },
  61. {
  62. path: '/lightmatrix2', // 欠发矩阵
  63. name: 'LightMatrix2',
  64. component: () => import(/* webpackChunkName: "lightmatrix2" */ '../views/LightMatrix2/LightMatrix2.vue')
  65. }, {
  66. path: '/lightmatrix3', // 明细矩阵
  67. name: 'LightMatrix3',
  68. component: () => import(/* webpackChunkName: "lightmatrix3" */ '../views/LightMatrix3/LightMatrix3.vue')
  69. },
  70. ]
  71. const router = createRouter({
  72. history: createWebHashHistory(),
  73. base: '/zhfx/',
  74. routes
  75. })
  76. export default router