路由跳轉正常,但是會報錯
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)
}