浏览代码

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) => ({