NavigationDuplicated: Avoided redundant navigation to current location: “mine“解决方案

tech2025-09-06  54

有关这个bug,我使用了一种比较简易有效的解决方案 只需在router文件的index.js中添加以下代码即可:

const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }

就可以解决了。。。。

最新回复(0)