Error message:
Uncaught (in promise) NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated"}
The reason given:
that reason is being given by others blog since vue-router version used is 3.1.0, while vue-router jump in version 3.1.0 of the route using the promise of the way, probably because the official vue staff did a good design caused the bUG, vue-router official launch at 2019-08-06 [email protected] has fixed the bug.
Solution:
1. Install 3.1.1 above vue-router version to resolve an error.
2. main.js in the router to add the code file
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
Reference Source: https://blog.csdn.net/weixin_43202608/article/details/98884620