index.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. const Main = () => import('@/views/main/index')
  4. const Strategy = () => import('@/views/strategy/index')
  5. const Appeal = () => import('@/views/appeal/index')
  6. const AppealDetail = () => import('@/views/appeal/appealDetail')
  7. const Audit = () => import('@/views/audit/index')
  8. const DoBusiness = () => import('@/views/doBusiness/index')
  9. const Evaluate = () => import('@/views/evaluate/index')
  10. const EvTwoLevelMenu = () => import('@/views/evaluate/evTwoLevelMenu')
  11. Vue.use(Router)
  12. export default new Router({
  13. mode: 'history',
  14. routes: [
  15. {
  16. path: '/',
  17. name: 'main',
  18. component: Main
  19. },
  20. {
  21. path: '/strategy',
  22. name: 'strategy',
  23. component: Strategy
  24. },
  25. {
  26. path: '/appeal',
  27. name: 'appeal',
  28. component: Appeal
  29. },
  30. {
  31. path: '/appeal/appealDetail',
  32. name: 'appealDetail',
  33. component: AppealDetail
  34. },
  35. {
  36. path: '/audit',
  37. name: 'audit',
  38. component: Audit
  39. },
  40. {
  41. path: '/doBusiness',
  42. name: 'doBusiness',
  43. component: DoBusiness
  44. },
  45. {
  46. path: '/evaluate',
  47. name: 'evaluate',
  48. component: Evaluate
  49. },
  50. {
  51. path: '/evaluate/evTwoLevelMenu',
  52. name: 'evTwoLevelMenu',
  53. component: EvTwoLevelMenu
  54. }
  55. ]
  56. })