Explorar o código

fix: 修复错误的异步导致的请求顺序出错

Jinyao %!s(int64=5) %!d(string=hai) anos
pai
achega
2947aadf17
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/views/Project/Pipeline.vue

+ 4 - 4
src/views/Project/Pipeline.vue

@@ -520,12 +520,12 @@ export default {
             templateName: this.createPipelineForm.template,
             templateName: this.createPipelineForm.template,
           });
           });
           this.showPipelineCreateModal = false;
           this.showPipelineCreateModal = false;
+          this.confirmLoading = false;
+          this.loading = true;
+          this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
+          this.loading = false;
         }
         }
       });
       });
-      this.confirmLoading = false;
-      this.loading = true;
-      this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
-      this.loading = false;
     },
     },
     open(url, target) {
     open(url, target) {
       window.open(url, target);
       window.open(url, target);