使用this.$http.get 和 this.$http.post传参
get:
getInfo(){
this.$http.get('接口地址',{params:{参数}},{emulateJSON:true}).then(result =>{ console.log(result) }) }
post:
getInfo(){
this.$http.post('接口地址',{参数},{emulateJSON:true}).then(result =>{
console.log(result.body.rows)
})
}

浙公网安备 33010602011771号