问题
vue路由重复报错 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); }
网友评论