123456789101112131415 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
- import CommonRouters from '@/router/router'
- const routerPush = VueRouter.prototype.push
- VueRouter.prototype.push = function push(location) {
- return routerPush.call(this, location).catch(error=> error)
- }
- Vue.use(VueRouter)
- export default new VueRouter({
- // mode:'history',
- routes: CommonRouters
- })
|