소스 검색

fix:接口超时改为10分钟

hanyang 1 년 전
부모
커밋
e8f33b9b3b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/base/ajax.js

+ 1 - 1
src/base/ajax.js

@@ -5,7 +5,7 @@ import replaceProxyUrl from './ajax/replace-proxy-url';
 
 const ajax = axios.create({
   withCredentials: true, // 跨域发送 cookie
-  timeout: 300000, // 请求超时
+  timeout: 1000 * 60 * 10, // 请求超时
   headers: {
     'Content-Type': 'application/json'
   }