Resolve Vue the navigationduplicated error on the console

Problem solving: click the same link and an error will be reported for a duplicate key

const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

259184;-router-index.js-373244;

Similar Posts: