Error: avoided redundant navigation to current location: “index/user” solution
Problem description solution
Problem description
Using the navigation menu made by element UI, when clicking the same navigation continuously, an error will be reported
the error will not affect the function ( Affect obsessive-compulsive disorder )
As shown in the figure
current address http://localhost : 8080/#/index/user
continuous click – user list
jump to the same address http://localhost : 8080/#/index/user
error report
Solutions
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
// router folder - >index.js file
//cv the following code to solve the error reporting problem of duplicate routing addresses (once and for all)
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Read More:
- Vue Uncaught (in promise) Error: Navigation cancelled from “/home“ to “/login“ with a new navigation
- How to Solve Android Error: gps requires ACCESS_FINE_LOCATION
- How to Solve elasticsearch root user start Error
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- How to Solev PyEddyTracker geostrophic current calculation Error
- How to Solve Koa Error: Cannot find module ‘koa-router‘
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- [Solved] URIError: Failed to decode param ‘/%3C%=%20BASE_URL%20%3Estatic/index.%3C%=%20VUE_APP_INDEX_CSS_HASH%20%3E.css’
- [Solved] the SDK location is inside Studio‘s install location
- How to Solve Git Error: error: failed to push some refs to……
- How to Solve Starrocks Various Error
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- How to Solve DVA switches history to browserhistory Error
- How to Solve Loadrunner Error: Failed to find .cfg file
- How to Solve VMware Workstation Error: This virtual machine appears to be in use.
- How to Solve Application failed to start error
- How to Solve using stm32f4 to drive PS2 error
- How to Solve Logstash error: failed to execute action
- How to Solve Rabbitmq Error: Failed to start RabbitMQ broker
- How to Solve OpenCV CVUI Error: LINK2019