在router中的js里新增这样一段代码
const routerOther = Router.prototype.push
Router.prototype.push = function push(location) {
return routerOther.call(this, location).catch(err => err)
}
在router中的js里新增这样一段代码
const routerOther = Router.prototype.push
Router.prototype.push = function push(location) {
return routerOther.call(this, location).catch(err => err)
}