提交 f65e714e 编写于 作者: Pan's avatar Pan

延迟请求超时时间

上级 115b2b0f
...@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'; ...@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth';
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
baseURL: process.env.BASE_API, // api的base_url baseURL: process.env.BASE_API, // api的base_url
timeout: 5000 // 请求超时时间 timeout: 15000 // 请求超时时间
}); });
// request拦截器 // request拦截器
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或