解决问题: 点击相同的链接,会有一个重复key的报错 const originalPush = Router.prototype.push Router.prototype.push = function push (location) { return originalPush.call(this, location).catch(err => err) } 放在router 的 index.js 里 来源:https://www.cnblogs.com/pengchenggang/p/11572652.html 标签 控制台