有关这个bug,我使用了一种比较简易有效的解决方案 只需在router文件的index.js中添加以下代码即可:
const originalPush
= VueRouter
.prototype
.push
VueRouter
.prototype
.push = function push(location
) {
return originalPush
.call(this, location
).catch(err
=> err
)
}
就可以解决了。。。。
转载请注明原文地址:https://tech.qufami.com/read-23987.html