今天爱分享给大家带来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://itblood.website/1426.html,转载请注明出处。

![骄傲女魔王 マート×テトラ [日式RPG/汉化]](/wp-content/uploads/replace/2025/07/18/755eee7ad29104d5e5e65c040cf20655.webp)