소스 검색

修改默认请求超时时间

萤火科技 5 년 전
부모
커밋
444fb58811
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      utils/request/index.js

+ 2 - 2
utils/request/index.js

@@ -20,8 +20,8 @@ const $http = new request({
   header: {
     'content-type': 'application/json;charset=utf-8'
   },
-  // 请求超时时间, 单位ms(默认3000)
-  timeout: 3000,
+  // 请求超时时间, 单位ms(默认15秒)
+  timeout: 15000,
   // 默认配置(可不写)
   config: {
     // 是否自动提示错误