index.js 648 B

123456789101112131415161718192021222324252627282930313233
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Home from '@/pages/home/'
  4. import Collection from '@/pages/collection/'
  5. import Exhibition from '@/pages/exhibition/'
  6. import CountryTime from '@/pages/country_time/'
  7. Vue.use(Router)
  8. export default new Router({
  9. routes: [
  10. {
  11. path: '/',
  12. name: 'Home',
  13. component: Home
  14. },
  15. {
  16. path: '/collection',
  17. name: 'collection',
  18. component: Collection
  19. },
  20. {
  21. path: '/exhibition',
  22. name: 'exhibition',
  23. component: Exhibition
  24. },
  25. {
  26. path: '/country_time',
  27. name: 'country_time',
  28. component: CountryTime
  29. }
  30. ]
  31. })