Explorar el Código

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

louhangfei hace 1 año
padre
commit
154c8e47f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,