index.js 721 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. import Home from '../pages/Home.vue'
  4. import oldStatistics from '../pages/oldStatistics.vue'
  5. import PatrolmanStatistics from '../pages/PatrolmanStatistics.vue'
  6. import Ranking from '../pages/Ranking.vue'
  7. Vue.use(VueRouter)
  8. const routes = [
  9. {
  10. path: '/',
  11. name: 'Home',
  12. component: Home
  13. },
  14. {
  15. path: '/home/oldStatistics',
  16. name: 'oldStatistics',
  17. component: oldStatistics
  18. },
  19. {
  20. path: '/home/PatrolmanStatistics',
  21. name: 'oldStatistics',
  22. component: PatrolmanStatistics
  23. },
  24. {
  25. path: '/home/Ranking',
  26. name: 'oldStatistics',
  27. component: Ranking
  28. }
  29. ]
  30. const router = new VueRouter({
  31. routes
  32. })
  33. export default router