Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to 解决办法

2023-05-10,,

main.js 配置如下

import Router from 'vue-router';
//路由导航冗余报错(路由重复)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}

Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to 解决办法的相关教程结束。

《Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to 解决办法.doc》

下载本文的Word格式文档,以方便收藏与打印。