問題
vue路由重復(fù)報(bào)錯(cuò)?NavigationDuplicated: Avoided redundant navigation to current location
解決
const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push (location) { return originalPush.call(this,location).catch(err => err); }