1.get
- let obj = {
- supplier_ext_id:''
- }
- this.$ajax.get('/douyinOpen/poi/supplier/query/',{
- params:obj,
- headers:{
- "access-token":this.token
- }
- })
2.post
- let obj = {
- supplier_ext_id:'',
- name:'',
- attributes:{},
- poi_id:'',
- type:1,
- status:1
- }
- this.$ajax.post('/douyinOpen/poi/supplier/sync/',obj,{
- headers:{
- "access-token":this.token
- }
- })
差异
get中headers位于第二个参数中和参数并列,post中位于第三个参数中