瀏覽代碼

fix: 在创建和更新流水线后刷新列表

Jinyao 5 年之前
父節點
當前提交
7e4a9b600c
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/views/Project/Pipeline.vue

+ 7 - 0
src/views/Project/Pipeline.vue

@@ -397,6 +397,9 @@ export default {
         configJson: JSON.stringify(this.pipelineConfig),
         configJson: JSON.stringify(this.pipelineConfig),
       });
       });
       this.showPipelineEditModal = false;
       this.showPipelineEditModal = false;
+      this.loading = true;
+      this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
+      this.loading = false;
     },
     },
     async handlePipelineCreateConfirm() {
     async handlePipelineCreateConfirm() {
       this.$refs.createPipelineForm.validate(async (valid) => {
       this.$refs.createPipelineForm.validate(async (valid) => {
@@ -410,6 +413,10 @@ export default {
           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;
     },
     },
     open(url, target) {
     open(url, target) {
       window.open(url, target);
       window.open(url, target);