1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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: '/',
- name: 'Index',
- component: () => import('../pages/index/index.vue')
- },
- {
- path: '/search',
- name: 'Search',
- component: () => import('../pages/search/index.vue'),
- meta: {id: ''}
- },
- {
- path: '/result',
- name: 'Result',
- component: () => import('../pages/result/index.vue'),
- meta: {id: ''}
- },
-
- {
- path: '/story',
- name: 'Story',
- component: () => import('../pages/story/index.vue'),
- meta: {id: 2}
- },
- {
- path: '/list',
- name: 'List',
- component: () => import('../pages/list/index.vue'),
- meta: {id: 2}
- },
- {
- path: '/floorlist/:id',
- name: 'Floorlist',
- component: () => import('../pages/floorlist/index.vue'),
- meta: {id: 3}
- },
- {
- path: '/parts',
- name: 'Parts',
- component: () => import('../pages/parts/index.vue'),
- meta: {id: 2}
- },
- {
- path: '/select',
- name: 'Select',
- component: () => import('../pages/select/index.vue'),
- meta: {id: 3}
- },
- {
- path: '/video',
- name: 'Video',
- component: () => import('../pages/video/index.vue'),
- meta: {id: 4}
- },
- {
- path: '/tunnel',
- name: 'Tunnel',
- component: () => import('../pages/tunnel/index.vue'),
- meta: {id: 1}
- }
-
- ]
- const router = new VueRouter({
- routes
- })
- export default router
|