[Solved] Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location

The cause of the error, I guess, is mostly a version problem

Add the following code to router/index.JS

const originalPush = VueRouter.prototype.push

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

As follows:

So far, the problem is solved

Similar Posts: