소스 검색

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

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;