routes.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: '/home',
  28. },
  29. {
  30. path: '/noAuth',
  31. component: './NoAuth',
  32. },
  33. {
  34. path: '/home',
  35. component: './Home',
  36. },
  37. {
  38. path: '/member',
  39. name: 'member',
  40. component: './Member',
  41. },
  42. {
  43. path: '/member/invalid',
  44. name: 'member.invalid',
  45. component: './Member/invalid',
  46. },
  47. {
  48. path: '/environment',
  49. name: 'environment',
  50. component: './Environment',
  51. },
  52. {
  53. path: '/equipment',
  54. name: 'equipment',
  55. component: './Equipment',
  56. },
  57. {
  58. path: '/runtime',
  59. name: 'runtime',
  60. component: './Runtime',
  61. },
  62. {
  63. path: '/runtime/recordList',
  64. name: 'recordList',
  65. component: './Runtime/RecordList',
  66. },
  67. ],
  68. },
  69. ];