Browse Source

timeout时间改为60秒

刘洋 6 tháng trước cách đây
mục cha
commit
2d2912e92b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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