解决报错Uncaught (約束) NavigationDuplicated {_name: “NavigationDuplicated”, name: “NavigationDuplicated”}
まず、エラー レポートのスクリーンショットを撮ります。
解決策を紹介します。
次のコードをルーター ディレクトリの index.js ファイルに追加します。
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
それでおしまい。. . .