vue路由重复报错问题

2021-10-21  本文已影响0人  Madrigal_cdfa

问题

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

上一篇下一篇

猜你喜欢

热点阅读