[Vuejs]-Can't pass data in to delete request with Vue-Resource

0👍

Try this:

this.$http.delete('http://192.168.0.52:8080/article', { params: { title: 123 } }).then(res => {
    this.refresh();
    console.log(res.data);
}).catch((e)=>{console.log(e)});

Update: this is how this works for me in node:

app.delete('/article', (req, res) => {
  console.log(req.query.title); 
});

enter image description here

Leave a comment