Add the following code In router folder Index.JS :
import VueRouter from 'vue-router';
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
No error is reported after restart
Read More:
- [Solved] Vue console error: navigationduplicated: avoided redundant navigation to current location
- Vue elementui: solution for error: avoided redundant navigation to current location: “/xxx”
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- Vue solves the problem of repeated click navigation route error
- How to Solve Vue route jump repeated clicks Error
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Vue route jumps to the same page many times error: Navigationduplicated
- Solving routing errors by rewriting Vue push method
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- [Solved] Uncaught Error: Provide the “history“ option when calling “createRouter()“
- Jest Vue $route error [How to Modify]
- How to Solve “Vue is not defined” Error
- [Solved] vue-roter 4 Error: Error: Invalid route component/Uncaught (in promise) Error: Invalid route component
- [Solved] Vue3 Configuration routing error: Catch all routes (“*“) must now be defined using a param with a custom regexp.
- How to open a page in a new window by Vue router
- Vue displays 404 and 500 interfaces according to HTTP response status