ソースを参照

设置请求时间

Lijy 2 年 前
コミット
f11ace5dae
1 ファイル変更2 行追加2 行削除
  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',