Solution: modify the index.html file in the router folder
Add the following fields before vue.use (vuerouter):
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Read More:
- Vue router click the menu bar and the same module reports an error Vue router.esm.js? 2215:2065 Uncaught (in promise) Error
- Vue—— Error: Redirected when going from “/“ to “/directory/tree“ via a navigation guard
- [nodejs] error request aborted after request routing in post mode
- Flash + Vue uses Axios to obtain server data, and reports error: “request aborted”
- ionic Uncaught (in promise): Error: StaticInjectorError[NavController]
- Remove video with video byte 0, uncaught (in promise) domexception: failed to load because no supported source was f
- Uncaught (in promise) Error: timeout of 5000ms exceeded
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Uncaught (in promise) TypeError: Object(…) is not a function
- Easywasmlayer reports an error uncaught (in promise) domexception when playing a video
- CSRF verification failed. Request aborted.
- Tdengine failed to start, start request repeated too quickly for taosd.service
- Forbidden (403) CSRF verification failed. Request aborted. – Django
- Error in v-on handler (Promise/async): “Error: Request failed with status code 500“
- How to distinguish the source channel of router.push jump fast application
- How to Install Python 3 in Centos7 Quickly
- Vue failed to log in. F12 reported an error: request failed with status code 404
- Flask Request an extension before_request after_request errorhandler
- When configuring the proxy with Vue, the front-end requests the server-side error 504; the Vue console reports the error occurred while trying to proxy request
- An error is reported when vueroter jumps to the same route