解决报错Uncaught (in promise) NavigationDuplicated {_name: “NavigationDuplicated”, name: “NavigationDuplicated”}
First take a screenshot of the error report:
introduce the solution:
Add the following code to the index.js file in the router directory:
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
That's it. . . .