错误信息如下:
解决方式:
在router/index.js内加入如下代码
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
完美解决错误
错误信息如下:
解决方式:
在router/index.js内加入如下代码
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
完美解决错误