Browse Source

fix: 删除流水线后刷新列表

Jinyao 5 years ago
parent
commit
62e212b3c6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/Project/Pipeline.vue

+ 2 - 1
src/views/Project/Pipeline.vue

@@ -478,10 +478,11 @@ export default {
         }
         case 'delete': {
           this.loading = true;
-          PipelineAPI.deletePipeline({
+          await PipelineAPI.deletePipeline({
             projectId: this.$store.state.workspace.currentProjectId,
             pipelineId: id,
           });
+          this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
           this.loading = false;
           break;
         }