美文网首页
【VUE】Redirected when going from

【VUE】Redirected when going from

作者: _micang | 来源:发表于2020-10-22 19:07 被阅读0次

    /*解决*/

    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