catch不到多個報錯信息兩個請求都返回了報錯狀態(tài)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}))有大佬能指點一下嗎???
跪求!axios.all 多個請求同時報錯 catch不到各位有什么建議?
牛魔王的故事
2019-11-03 15:44:10