Przeglądaj źródła

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

Jinyao 5 lat temu
rodzic
commit
2947aadf17
1 zmienionych plików z 4 dodań i 4 usunięć
  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,
           });
           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) {
       window.open(url, target);