Ver código fonte

设置请求时间

Lijy 2 anos atrás
pai
commit
f11ace5dae
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      fhKeeper/formulahousekeeper/timesheet/src/http.js

+ 2 - 2
fhKeeper/formulahousekeeper/timesheet/src/http.js

@@ -2,7 +2,7 @@ import axios from 'axios'
 import qs from 'qs'
 import imgPath from "@/assets/image/jiazai.gif"
 
-const TIME_OUT_MS = 60 * 1000 // 默认请求超时时间
+const TIME_OUT_MS = 120 * 1000 // 默认请求超时时间
 
 function prompt() {
     window.ELEMENT.Message({
@@ -64,7 +64,7 @@ export default {
             method: 'post',
             url: handleUrl(url),
             data: handleParams(qs.stringify(data)),
-            // timeout: TIME_OUT_MS,
+            timeout: TIME_OUT_MS,
             headers: {
                 //'Content-Type': 'application/json; charset=UTF-8'
                 'Content-type': ' application/x-www-form-urlencoded; charset=UTF-8',