vue-router.esm.js?8c4f:2008 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/index". 报错原因
在路由文件中加上以下代码
// const originalReplace = VueRouter.prototype.replace; // VueRouter.prototype.replace = function push(location) { // return originalReplace.call(this, location).catch(err => err); // };
push ....等雷同替换即可
苦心人,天不负