var esapi = axios.create({
baseURL: '/',
timeout: 30000,
headers: {
post:{
'Content-Type':'application/x-www-form-urlencoded'
}
},
withCredentials:true
});
首先创建一个axios对象包括请求的url 请求时间  headers 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案