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”
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Vue solves the problem of repeated click navigation route error
- How to Solve Vue route jump repeated clicks Error
- [Solved] Vue-router Error: Navigation cancelled from “/course“ to “/user“ with a new navigation.
- 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
- Vue refreshes the current page (no flash screen will appear)
- Solving routing errors by rewriting Vue push method
- How to Solve “Vue is not defined” Error
- Vue2.0: How to Use vue3 api to encapsulate Axios
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- How to open a page in a new window by Vue router
- Vue displays 404 and 500 interfaces according to HTTP response status
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…