问题描述:vue中重复点击相同的路由跳转时,即目标路由和当前路由是同样的时,页面会报以下错误。 解决办法: 在router中加入以下代码 const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) } 来源:https://my.oschina.net/u/4138368/blog/3137667 标签 路由