Explorar o código

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

Jinyao %!s(int64=5) %!d(string=hai) anos
pai
achega
2892321f10
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  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': {