Commit b4b39325 authored by 黄奎's avatar 黄奎

新增事件

parent e0887a06
import Vue from 'vue'
import Router from 'vue-router'
/**
* 重写路由的push方法
*/
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}
Vue.use(Router)
export default new Router({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment