1. Error information
This error report does not affect the function. If you feel uncomfortable, you can solve it
2. Solutions
Add the following sentences in main. JS
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Done!
Similar Posts:
- [Solved] Vue router in the element UI navigation bar repeatedly clicks on the menu above version 3.0 and reports errors
- [Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to
- [Solved] Vue route Duplicate Error: error avoid redundant navigation to current location: “/home”
- [Solved] Vue Error: NavigationDuplicated: Avoided redundant navigation to current location: “xxx”.
- [Solved] VUE Project Error: Avoided redundant navigation to current location: “/XXX“
- Resolve Vue the navigationduplicated error on the console
- Uncaught (in promise) NavigationDuplicated [How to Solve]
- [Solved] Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- [Solved] Vue router common problems (push error, push duplicate route refresh)
- [Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location