routes.ts 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: './user/Login',
  13. },
  14. ],
  15. },
  16. {
  17. component: './404',
  18. },
  19. ],
  20. },
  21. {
  22. path: '/',
  23. component: '../layouts',
  24. routes: [
  25. // {
  26. // path: '/',
  27. // redirect: '/environment',
  28. // },
  29. {
  30. path: '/environment',
  31. name: 'environment',
  32. component: './Environment',
  33. },
  34. {
  35. path: '/equipment',
  36. name: 'equipment',
  37. component: './Equipment',
  38. },
  39. {
  40. path: '/runtime',
  41. name: 'runtime',
  42. component: './Runtime',
  43. },
  44. {
  45. path: '/runtime/recordList',
  46. name: 'recordList',
  47. component: './Runtime/RecordList',
  48. },
  49. ],
  50. },
  51. ];