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

Merge branch 'dev_pipeline' into dev

Jinyao 5 лет назад
Родитель
Сommit
04b75d9084
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/views/Project/Pipeline.vue

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

@@ -375,7 +375,15 @@ 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;
         }