瀏覽代碼

timeout时间改为60秒

刘洋 6 月之前
父節點
當前提交
2d2912e92b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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