lsc 1 month ago
parent
commit
612366573a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      js/UForm/Ajax.js
  2. 1 1
      uform.js

+ 1 - 1
js/UForm/Ajax.js

@@ -281,7 +281,7 @@ U.A.Request.createAjaxObject = function (url) {
 U.A.Request.writeHeader = function (ajax, header) {
 U.A.Request.writeHeader = function (ajax, header) {
     header["CONTENT-TYPE"] = header["CONTENT-TYPE"] || "application/x-www-form-urlencoded;charset=UTF-8"; //请求写入数据的格式,必须传值,否则后台获取值会报错
     header["CONTENT-TYPE"] = header["CONTENT-TYPE"] || "application/x-www-form-urlencoded;charset=UTF-8"; //请求写入数据的格式,必须传值,否则后台获取值会报错
     //header["Connection"] = "keep-alive";
     //header["Connection"] = "keep-alive";
-    header["timeout"] = 10000;
+    header["timeout"] = 60000;
     try {
     try {
         header["type"] = null;
         header["type"] = null;
         delete header["type"];
         delete header["type"];

+ 1 - 1
uform.js

@@ -540,7 +540,7 @@ U.A.Request.createAjaxObject = function (url) {
 U.A.Request.writeHeader = function (ajax, header) {
 U.A.Request.writeHeader = function (ajax, header) {
     header["CONTENT-TYPE"] = header["CONTENT-TYPE"] || "application/x-www-form-urlencoded;charset=UTF-8"; //请求写入数据的格式,必须传值,否则后台获取值会报错
     header["CONTENT-TYPE"] = header["CONTENT-TYPE"] || "application/x-www-form-urlencoded;charset=UTF-8"; //请求写入数据的格式,必须传值,否则后台获取值会报错
     //header["Connection"] = "keep-alive";
     //header["Connection"] = "keep-alive";
-    header["timeout"] = 10000;
+    header["timeout"] = 60000;
     try {
     try {
         header["type"] = null;
         header["type"] = null;
         delete header["type"];
         delete header["type"];