main中:Vue.prototype.$request = request; 调用方法:this.$request.delete(url:'xxxxx', config:{data:delIdList,headers: {'Content-Type': "application/json;charset=UTF-8"}} ).then(res => { console.log(res) this.refreshTable() }) }
总结:将携带的参数,放在config(配置)的部分
main中:Vue.prototype.$request = request; 调用方法:this.$request.delete(url:'xxxxx', config:{data:delIdList,headers: {'Content-Type': "application/json;charset=UTF-8"}} ).then(res => { console.log(res) this.refreshTable() }) }
总结:将携带的参数,放在config(配置)的部分