Browse Source

add timeout send request

haojianlong 5 years ago
parent
commit
b08003608f
1 changed files with 5 additions and 3 deletions
  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)
         }
       })
     }