Explorar o código

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

Jinyao %!s(int64=5) %!d(string=hai) anos
pai
achega
7e4a9b600c
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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),
       });
       this.showPipelineEditModal = false;
+      this.loading = true;
+      this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
+      this.loading = false;
     },
     async handlePipelineCreateConfirm() {
       this.$refs.createPipelineForm.validate(async (valid) => {
@@ -410,6 +413,10 @@ export default {
           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) {
       window.open(url, target);