今天爱分享给大家带来vue路由跳转连续点击报错问题【解决方法】,希望能够帮助到大家。
在router的index.js里面加入以下代码
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
注意VueRouter名,与import VueRouter from ‘vue-router’引入的名保持一致
原文链接:https://blog.itblood.com/1426.html,转载请注明出处。

![我的新生活 重置版 My New Life: Revamp v0.98 汉化版+全回想画廊MOD [更新][10.2G] [伦理RPG/汉化/动态]](/wp-content/uploads/replace/2025/07/19/b97d2c3b9d1b1f45863fcaad60adb0b5.webp)