routes.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: '/login',
  23. name: 'login',
  24. component: './Login',
  25. layout: false,
  26. },
  27. {
  28. path: '/',
  29. component: '../layouts',
  30. routes: [
  31. {
  32. path: '/',
  33. redirect: '/Equipment',
  34. },
  35. {
  36. path: '/noAuth',
  37. component: './NoAuth',
  38. },
  39. {
  40. path: '/environment',
  41. name: 'environment',
  42. component: './Environment',
  43. },
  44. {
  45. path: '/equipment',
  46. name: 'equipment',
  47. component: './Equipment',
  48. },
  49. {
  50. path: '/runtime',
  51. name: 'runtime',
  52. component: './Runtime',
  53. },
  54. {
  55. path: '/runtime/recordList',
  56. name: 'recordList',
  57. component: './Runtime/RecordList',
  58. },
  59. ],
  60. },
  61. ];