您的位置: 首页 > IT文章 > axios 本地配置多个类型请求 axios 本地配置多个类型请求 分类: IT文章 • 2025-01-22 14:40:31 var esapi = axios.create({ baseURL: '/', timeout: 30000, headers: { post:{ 'Content-Type':'application/x-www-form-urlencoded' } }, withCredentials:true }); 首先创建一个axios对象包括请求的url 请求时间 headers