vue路由重复报错问题

问题

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); }

你可能感兴趣的:(vue路由重复报错问题)