let fd = new FormData();
fd.append('uid',this.uid*1);
fd.append('password',this.password);
let config = {
headers:{
'Content-Type': 'multipart/form-data'
}
}
this.axios.post(url,fd,config)
.then((res)=>{
if(res.data.code == 200){
this.$router.push('/index')
}
})
},
axos 的post请求将发送的参数修改为form-data类型的数据
最新推荐文章于 2023-02-13 16:02:00 发布