Cant catch response after post request fail

前端 未结 0 745
不知归路
不知归路 2021-02-19 05:11

I send a request like this

try {
 const res = await axios.post(\'/order\', formData)

 console.log(res) --> undefined
 console.log(test1) --> it is on conso         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题