路由文件配置:
const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location, onResolve, onReject) { if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject) return originalPush.call(this, location).catch(err => err) }
标签:重复,location,push,onResolve,onReject,解决,路由,originalPush From: https://www.cnblogs.com/new-one/p/16749052.html