路由报错
//vue项目路由跳转,第二次点击菜单跳转时报错//在main.js中写入如下代码可解决import VueRouter from “vue-router”const originalPush = VueRouter.prototype.pushVueRouter.prototype.push = function push(location) {return originalPush.call(this, location).catch(err => err)}//vue项目路由跳转,
原创
2020-11-04 18:03:54 ·
207 阅读 ·
0 评论