项目中post请求,get请求,传参方式是不一样的。
get 请求:
this.$http.get('/rail/findet',{
params:{
truckCode:this.fencevin,
},
}).then((res) => {
console.log(res);
})
Post 请求:
this.$http.post('/rail/save',{
truckCode:this.fencevins,
}).then((res) => {
console.log(res);
})