index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Main from '../views/main.vue'
  4. import Index from '../views/index.vue'
  5. import Contant from '../views/contant.vue'
  6. import People from '../views/people.vue'
  7. import Myself from '../views/myself.vue'
  8. import Self from '../views/self.vue'
  9. import Enterprise from '../views/enterprise.vue'
  10. import Enterinfor from '../views/enterinfor.vue'
  11. import Legalinfor from '../views/legalinfor.vue'
  12. import Authorinfor from '../views/authorinfor.vue'
  13. import Certified from '../views/certified.vue'
  14. import Keyboth from '../views/keyboth.vue'
  15. Vue.use(Router)
  16. export default new Router({
  17. routes: [
  18. {
  19. path: '/',
  20. component: Main,
  21. children:[{
  22. path: '',
  23. component:Index,
  24. },
  25. {
  26. path: 'contant',
  27. component:Contant,
  28. },
  29. {
  30. path: 'people',
  31. component:People,
  32. },
  33. {
  34. path: 'myself',
  35. component:Myself,
  36. }]
  37. },
  38. {
  39. path:'/self',
  40. component: Self,
  41. },
  42. {
  43. path:'/keyboth',
  44. component: Keyboth,
  45. },
  46. {
  47. path:'/enterprise',
  48. component: Enterprise,
  49. children:[{
  50. path: '',
  51. component: Enterinfor,
  52. },
  53. {
  54. path: 'legalinfor',
  55. component: Legalinfor,
  56. },
  57. {
  58. path: 'authortitle',
  59. component: Authorinfor,
  60. }
  61. ]
  62. },
  63. {
  64. path: '/certified',
  65. component: Certified,
  66. }
  67. ]
  68. })