router.config.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. export default [
  2. {
  3. path: '/',
  4. routes: [
  5. { path: '/', redirect: '/login' },
  6. {
  7. path: '/login',
  8. component: './Login/Login',
  9. },
  10. {
  11. path: '/bom',
  12. redirect: '/home',
  13. },
  14. {
  15. path: '/home',
  16. component: './Index',
  17. routes: [
  18. {
  19. path: '/home',
  20. component: './List/List',
  21. },
  22. {
  23. path: '/home/detail/:projectId/:templateId',
  24. component: './Detail/Index',
  25. },
  26. {
  27. path: '/home/flow/:flowId',
  28. component: './Flow/Flow',
  29. },
  30. {
  31. path: '/home/audit',
  32. component: './Flow/Audit',
  33. },
  34. {
  35. path: '/home/audit-list',
  36. component: './Flow/AuditList',
  37. },
  38. {
  39. path: '/home/flow-list',
  40. component: './Flow/List',
  41. },
  42. {
  43. path: '/home/auth',
  44. component: './Auth/Auth',
  45. },
  46. {
  47. path: '/home/submit',
  48. component: './Auth/Submit',
  49. },
  50. ],
  51. },
  52. {
  53. path: '/mobile/detail/:templateId/:versionId',
  54. component: './Detail/Mobile',
  55. },
  56. {
  57. path: '/temp',
  58. component: './Temp/Index',
  59. },
  60. // {
  61. // path: '/dd-login/:dingUserId',
  62. // component: './DDLogin/index',
  63. // },
  64. // {
  65. // path: '/mobiletest/chart',
  66. // component: './Mobile/DataMeter/Chart',
  67. // },
  68. {
  69. component: '404',
  70. },
  71. ],
  72. },
  73. ];