index.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Main from '../views/main.vue'
  4. import brokers from '../views/brokers/brokers.vue'
  5. import nBodyone from '../views/brokers/nBodyone.vue'
  6. import nBodytwo from '../views/brokers/nBodytwo.vue'
  7. import nBodythree from '../views/brokers/nBodythree.vue'
  8. Vue.use(Router)
  9. export default new Router({
  10. routes: [
  11. {
  12. path: '/',
  13. component: Main
  14. },
  15. {
  16. path:'/home',
  17. component: Main
  18. },
  19. {
  20. path:'/brokers',
  21. component:brokers,
  22. children:[
  23. // {
  24. // path:'/',
  25. // component:nBodyone
  26. // },
  27. {
  28. path:'/apply',
  29. name:'apply1',
  30. component:nBodyone
  31. },
  32. {
  33. path:'/verify',
  34. name:'apply2',
  35. component:nBodytwo
  36. },
  37. {
  38. path:'/success',
  39. name:'apply3',
  40. component:nBodythree
  41. }
  42. ]
  43. }
  44. ]
  45. })