Sfoglia il codice sorgente

fix: 接口超时时间调整为20秒,防止getList接口超时

louhangfei 1 anno fa
parent
commit
154c8e47f4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/utils/http/axios/index.ts

+ 1 - 1
src/utils/http/axios/index.ts

@@ -274,7 +274,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
   return new VAxios(
     deepMerge(
       {
-        timeout: 10 * 1000,
+        timeout: 20 * 1000,
         authenticationScheme: '',
         // 接口前缀
         prefixUrl: urlPrefix,