Its tip is to avoid redundant navigation to the current location. Simply put, the same route is triggered repeatedly.
The solution is as follows:
in the router folder, click index Add these lines of code to the JS file:
const originalPush = Router.prototype.push
//Error Messages: NavigationDuplicated: Avoided redundant navigation to current location
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
The detailed location is as follows:
However, he uses vuerouter instead of router. I don’t know if it’s the Vue router version.
Read More:
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- [Solved] Vue Error: Avoided redundant navigation to current location:/xxxx
- Vue elementui: solution for error: avoided redundant navigation to current location: “/xxx”
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Vue: How to Solve 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
- [Solved] Vue route jumps to the same page many times error: Navigationduplicated
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Vue-router Error: Navigation cancelled from “/course“ to “/user“ with a new navigation.
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- How to Solve Vue route jump repeated clicks Error
- Vue refreshes the current page (no flash screen will appear)
- error: Unexpected console statement (no-console) [How to Solve]
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] error: Unexpected console statement (no-console)
- Solving routing errors by rewriting Vue push method
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- Vue2.0: How to Use vue3 api to encapsulate Axios