// Solve the error reported by repeatedly clicking the navigation route
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(VueRouter)
Copy directly to router.js. When pasting, pay attention to the execution sequence. This section is placed in front of new vuerouter
Read More:
- 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 elementui: solution for 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
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”
- [Solved] Vue route jumps to the same page many times error: Navigationduplicated
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- Jest Vue $route error [How to Modify]
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- [Solved] Vue-router Error: Navigation cancelled from “/course“ to “/user“ with a new navigation.
- Antdesignvue autocomplet completes the problem of repeated error reporting
- [Solved] vue.esm.js?efeb:591 [Vue warn]: Error in event handler for “click“: “TypeError: Cannot read property
- [Solved] vue-roter 4 Error: Error: Invalid route component/Uncaught (in promise) Error: Invalid route component
- Solving routing errors by rewriting Vue push method
- [Solved] React Click the Event to Modify the State Value Error
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist