解决报错Uncaught (in promise) NavigationDuplicated {_name: “NavigationDuplicated“, name: “NavigationDupl

解决报错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. . . .

Guess you like

Origin blog.csdn.net/qq_43375584/article/details/125651611