router.config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: '/dd-login/:dingUserId',
  58. // component: './DDLogin/index',
  59. // },
  60. // {
  61. // path: '/mobiletest/chart',
  62. // component: './Mobile/DataMeter/Chart',
  63. // },
  64. {
  65. component: '404',
  66. },
  67. ],
  68. },
  69. ];