소스 검색

add timeout send request

haojianlong 5 년 전
부모
커밋
b08003608f
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/views/point/dynamicdata/index.vue

+ 5 - 3
src/views/point/dynamicdata/index.vue

@@ -193,16 +193,18 @@ export default {
     getExecuteFeedback() {
       dynamicExecuteFeedback('', res => {
         this.allApplyClose()
-        this.isPending = false;
         let response = res.Content[0]
         if (response.Completed == 'Processing') {
           this.isPending = true;
           this.tipsType = 0;
           setTimeout(() => {
             this.getExecuteFeedback()
-          }, 2000)
+          }, 2500)
         } else {
-          this.getPrompt()
+          setTimeout(() => {
+            this.isPending = false;
+            this.getPrompt()
+          }, 2500)
         }
       })
     }