Przeglądaj źródła

timeout时间改为60秒

刘洋 6 miesięcy temu
rodzic
commit
2d2912e92b
1 zmienionych plików z 1 dodań i 1 usunięć
  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