Selaa lähdekoodia

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

louhangfei 1 vuosi sitten
vanhempi
commit
154c8e47f4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,