router->index.js
加入以下代码
const original = VueRouter.prototype.push
VueRouter.prototype.push = function push(localtion) {
return original.call(this, localtion).catch(err => err)
}
router->index.js
加入以下代码
const original = VueRouter.prototype.push
VueRouter.prototype.push = function push(localtion) {
return original.call(this, localtion).catch(err => err)
}