Переглянути джерело

fix: 修复流水线设置长度判断逻辑

Jinyao 5 роки тому
батько
коміт
e3a9b96b01
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/views/Project/Pipeline.vue

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

@@ -384,7 +384,7 @@ export default {
   },
   },
   computed: {
   computed: {
     isLastStep() {
     isLastStep() {
-      return this.activeStep === this.stages.length - 1;
+      return this.activeStep === this.pipelineConfig.length - 1;
     },
     },
     stageConfigsBase() {
     stageConfigsBase() {
       return this.stages.map((stage) => ({
       return this.stages.map((stage) => ({