Uncaught (in promise) Error: Avoided redundant navigation to current location: “/“.
ロuterでjsファイルに、次のコードを追加します.
vue-routerの3.0バージョン以上の重複点ルーティングエラーの解決
import VueRouter from 'vue-router'
Vue.use(Router)
// 【 】 vue-router 3.0
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
vue-routerの3.0バージョン以上の重複点ルーティングエラーの解決