catch不到多个报错信息两个请求都返回了报错状态axios.all([this.getFormData(),this.getFormHead()]).then(axios.spread((fromDataResp,formHeadResp)=>{console.log("成功")})).catch(error=>{console.log(error,'只能打印第二条报错')})试过这样也不行axios.all([this.getFormData(),this.getFormHead()]).then(axios.spread((fromDataResp,formHeadResp)=>{console.log("成功")})).catch(axios.spread((fromDataerr,formHeaderr)=>{console.log(fromDataerr)//underfindconsole.log(formHeaderr)//underfind}))有大佬能指点一下吗???
呼唤远方
相关分类