12345678910111213141516171819202122232425262728293031323334353637 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
- import Home from '../pages/Home.vue'
- import oldStatistics from '../pages/oldStatistics.vue'
- import PatrolmanStatistics from '../pages/PatrolmanStatistics.vue'
- import Ranking from '../pages/Ranking.vue'
- Vue.use(VueRouter)
- const routes = [
- {
- path: '/',
- name: 'Home',
- component: Home
- },
- {
- path: '/home/oldStatistics',
- name: 'oldStatistics',
- component: oldStatistics
- },
- {
- path: '/home/PatrolmanStatistics',
- name: 'oldStatistics',
- component: PatrolmanStatistics
- },
- {
- path: '/home/Ranking',
- name: 'oldStatistics',
- component: Ranking
- }
- ]
- const router = new VueRouter({
- routes
- })
- export default router
|