浏览代码

上传附件超时时间改为无限大

shaogen1995 2 年之前
父节点
当前提交
847248f1c4
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      houtai/src/store/action/A2News.ts
  2. 1 1
      houtai/src/store/action/A3Goods.ts
  3. 1 1
      houtai/src/store/action/A4Venue.ts

+ 1 - 1
houtai/src/store/action/A2News.ts

@@ -12,7 +12,7 @@ export const newsUploadAPI = (data: any) => {
   domShowFu("#UpAsyncLoding", true);
 
   return http.post("cms/news/upload", data, {
-    timeout: 50000,
+    timeout: 0,
     // 显示进度条
     onUploadProgress: (e: any) => {
       const complete = (e.loaded / e.total) * 100 || 0;

+ 1 - 1
houtai/src/store/action/A3Goods.ts

@@ -40,7 +40,7 @@ export const goodsUploadAPI = (data: any) => {
   domShowFu("#UpAsyncLoding", true);
 
   return http.post("cms/goods/upload", data, {
-    timeout: 50000,
+    timeout: 0,
     // 显示进度条
     onUploadProgress: (e: any) => {
       const complete = (e.loaded / e.total) * 100 || 0;

+ 1 - 1
houtai/src/store/action/A4Venue.ts

@@ -12,7 +12,7 @@ export const venueUploadAPI = (data: any) => {
   domShowFu("#UpAsyncLoding", true);
 
   return http.post("cms/exhibition/upload", data, {
-    timeout: 50000,
+    timeout: 0,
     // 显示进度条
     onUploadProgress: (e: any) => {
       const complete = (e.loaded / e.total) * 100 || 0;