Răsfoiți Sursa

timeout时间改为60秒

刘洋 6 luni în urmă
părinte
comite
2d2912e92b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/api/interceptor.ts

+ 1 - 1
src/api/interceptor.ts

@@ -12,7 +12,7 @@ import { DEVICE_ID, PLATFORM } from '../constants/app';
 import { objTypeOf } from '../utils/utils';
 import { useUserStore } from '../store';
 
-axios.defaults.timeout = 10 * 1000;
+axios.defaults.timeout = 60 * 1000;
 
 let load: MessageReturn | null = null;
 // 同一时间有多个请求时,会形成队列。在第一个请求创建loading,在最后一个响应关闭loading