The error report shows that the route is repeated, which has no effect on the function, but obsessive-compulsive disorder looks uncomfortable.
Specific performance: repeatedly click the tab menu in the element UI, this error will be reported.
Solution:
Solve the problem that vue-router in the navigation bar of ElementUI reports an error when repeatedly clicking the menu in version 3.0 or above
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
Router file index.js Add the above code in.
Note: router or vuerouter depends on the definition in your file.
Read More:
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- [Solved] Vue console error: navigationduplicated: avoided redundant navigation to current location
- [Solved] Vue Error: Avoided redundant navigation to current location:/xxxx
- [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
- [Solved] Vue-router Error: Navigation cancelled from “/course“ to “/user“ with a new navigation.
- How to Solve Vue route jump repeated clicks Error
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- Vue refreshes the current page (no flash screen will appear)
- [Solved] Vue route jumps to the same page many times error: Navigationduplicated
- [Solved] Vue3 Error: Failed to resolve component:xxx
- Solving routing errors by rewriting Vue push method
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- Vuejs composite ElementUI component library error
- [Solved] Vue Project Startup Error: getaddrinfo ENOTFOUND xxx
- [Solved] Errors: 1 http://eslint.org/docs/rules/quotes…elementUI Import Error
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist