Преглед изворни кода

fix: 触发流水线后刷新列表

Jinyao пре 5 година
родитељ
комит
2892321f10
1 измењених фајлова са 10 додато и 1 уклоњено
  1. 10 1
      src/views/Project/Pipeline.vue

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

@@ -352,7 +352,16 @@ export default {
             projectId: this.$store.state.workspace.currentProjectId,
             pipelineId: id,
           });
-          this.productions = await PipelineAPI.getDeploymentsByProjectId(this.$store.state.workspace.currentProjectId);
+
+          PipelineAPI.getDeploymentsByProjectId(this.$store.state.workspace.currentProjectId)
+            .then(
+              (res) => {
+                this.productions = res;
+              },
+            );
+          this.loading = true;
+          this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
+          this.loading = false;
           break;
         }
         case 'detail': {