this.axios.post(‘/api/delShare‘, qs.stringify({‘Id‘:Number(id)})).then(res=>{
if(res.data.status=="success"){
alert(res.data.msg);
_this.getData();
}
}).catch(err=>{
console.log(err);
});
请求效果:
localhost:7086/api/delShare => http://test.weioutech.com/rest/delShare
请求效果:
localhost:7086/api/delShare => http://test.weioutech.com/delShare