对于get请求
this.$http.get(url,{params:{action:"edit",data:{name:"test"}}}) .then(res=>{ var body = res.body; },err=>{ console.error(err); })
对于post请求
this.$http.post(url,{action:"edit",data:{name:"test"}}) .then(res=>{ var body = res.body; },err=>{ console.error(err); })