axios delete request parameters

If the server encapsulates and receives the parameter as a java object, the parameter format is: {data: param}

var param = name: 'jack', age: 20} 
axios .delete("/ehrReferralObjPro", {data: param}) .then(function(response) { }

If the server receives the parameters as url parameters, the format is: {params: param}, so the sent url will become http:www.XXX.com?a=..&b=..

var param = {name: 'jack', age: 20
axios
          .delete("/ehrReferralObjPro", {params: param})
          .then(function(response) {
            }

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325376726&siteId=291194637