Przeglądaj źródła

fix:接口超时改为10分钟

hanyang 1 rok temu
rodzic
commit
e8f33b9b3b
1 zmienionych plików z 1 dodań i 1 usunięć
  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'
   }