axios.post('/api/xxx',{ // post body },{ params: { // query } })
demo:
let params = { _id:this.alarmAddForm._id, name:this.alarmAddForm.name, userId:"user1", } this.$http.post('/geofence/api/geofence/updateElectricFence',this.pentagonpath,{params:params}).then((res)=>{ if(res.data.errcode == 0 ){ this.editVisible = false this.load() }