Просмотр исходного кода

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

Jinyao 5 лет назад
Родитель
Сommit
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,
             projectId: this.$store.state.workspace.currentProjectId,
             pipelineId: id,
             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;
           break;
         }
         }
         case 'detail': {
         case 'detail': {