123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
- Vue.use(VueRouter)
- const originalPush = VueRouter.prototype.push
- VueRouter.prototype.push = function push (location) {
- return originalPush.call(this, location).catch(err => err)
- }
- const routes = [
- {
- path: '/',
- redirect: '/index'
- },
- {
- path: '/index',
- name: 'Main',
- component: () => import('../pages/Main/index.vue')
- },
- {
- path: '/ruins',
- name: 'Ruins',
- component: () => import('../pages/ruins/index.vue')
- },
- {
- path: '/ruins-detail',
- name: 'Ruins-Detail',
- component: () => import('../pages/ruins-detail/index.vue')
- },
- {
- path: '/travel-around',
- name: 'Travel-Around',
- component: () => import('../pages/travel-around/index.vue')
- },
- {
- path: '/over-look',
- name: 'Over-Look',
- component: () => import('../pages/over-look/index.vue')
- },
- // {
- // path: '/search',
- // name: 'Search',
- // component: () => import('../pages/search/index.vue'),
- // meta: {id: ''}
- // },
- // {
- // path: '/scenes',
- // name: 'Scenes',
- // component: () => import('../pages/scenes/index.vue'),
- // meta: {id: '5'}
- // },
- // {
- // path: '/sceneiframe',
- // name: 'Scene',
- // component: () => import('../pages/sceneiframe/index.vue'),
- // meta: {id: '12'}
- // },
- // {
- // path: '/antiques',
- // name: 'Antiques',
- // component: () => import('../pages/antiques/index.vue'),
- // meta: {id: 10}
- // },
- // {
- // path: '/detail',
- // name: 'Detail',
- // component: () => import('../pages/detail/index.vue'),
- // meta: {id: 15}
- // },
- // {
- // path: '/panorama',
- // name: 'Panorama',
- // component: () => import('../pages/panorama/index.vue'),
- // meta: {id: 11}
- // },
- // {
- // path: '/map',
- // name: 'Map',
- // component: () => import('../pages/map/index.vue'),
- // meta: {id: 16}
- // },
- // {
- // path: '/all',
- // name: 'All',
- // component: () => import('../pages/All/index.vue'),
- // meta: {id: 17}
- // }
- ]
- const router = new VueRouter({
- routes
- })
- export default router
|