// 多次点击同一路由报错
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
undefined
return originalPush.call(this, location).catch(err => err)
}
把这个放在路由router的页面
参考: https://blog.csdn.net/sunlizhen/article/details/109162845