美文网首页
解析封装请求中的err

解析封装请求中的err

作者: 二营长家的张大炮 | 来源:发表于2019-09-27 10:45 被阅读0次
        (err: any) => {
            if (err.response) {
                if (err.response.status === 403) {
                    localStorage.clear();
                    window.location.href = "/zhkt/eshopManageWeb/#/signin";
                }
            }
            return Promise.reject(err);
        },
    

    相关文章

      网友评论

          本文标题:解析封装请求中的err

          本文链接:https://www.haomeiwen.com/subject/pjbouctx.html