axios删除请求未发送配置对象中的数据字段

时间:2020-09-28 10:55:15

标签: axios

我正在尝试传递axios.delete('https://httpbin.org/delete',{data:“ anything”}}); 但是当我检查响应时,数据字段为null或请求正文为null。这是在axios的delete方法中发送请求正文的唯一方法

 axios.delete('https://httpbin.org/delete', {data:'gfghhhg'})
      .then(response => {
        console.log("response",response);

      })
      .catch(e => {
        console.log("error",e);
      })

this is the response in console

0 个答案:

没有答案