/*解决*/
const a = Router.prototype.push;
Router.prototype.push =function push(location, onResolve, onReject) {
if (onResolve || onReject)return a.call(this, location, onResolve, onReject);
return a.call(this, location).catch(err => err);
}
/*解决*/
const a = Router.prototype.push;
Router.prototype.push =function push(location, onResolve, onReject) {
if (onResolve || onReject)return a.call(this, location, onResolve, onReject);
return a.call(this, location).catch(err => err);
}
本文标题:【VUE】Redirected when going from
本文链接:https://www.haomeiwen.com/subject/gxypmktx.html
网友评论