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:
- [Solved] Vue route Duplicate Error: error avoid redundant navigation to current location: “/home”
- [Solved] Vue router in the element UI navigation bar repeatedly clicks on the menu above version 3.0 and reports errors
- [Solved] Vue Error: NavigationDuplicated: Avoided redundant navigation to current location: “xxx”.
- Uncaught (in promise) NavigationDuplicated [How to Solve]
- [Solved] VUE Project Error: Avoided redundant navigation to current location: “/XXX“
- [Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to
- Resolve Vue the navigationduplicated error on the console
- How to Solve Vue Error: NavigationDuplicated
- [Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- [Solved] Vue router common problems (push error, push duplicate route refresh)