فهرست منبع

fix: 流水线默认属性转换增加pipelineName; 上一笔提交遗漏

chenyitao.0928 5 سال پیش
والد
کامیت
14d09d5c44
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      src/views/Project/Pipeline.vue

+ 3 - 4
src/views/Project/Pipeline.vue

@@ -154,7 +154,7 @@
       </ElDialog>
       </ElDialog>
       <ElDialog
       <ElDialog
         v-model="showPipelineEditModal"
         v-model="showPipelineEditModal"
-        width="80%"
+        width="60%"
         destroy-on-close
         destroy-on-close
       >
       >
         <template #title>
         <template #title>
@@ -548,9 +548,8 @@ export default {
         (item) => item.id === this.$store.state.workspace.currentProjectId,
         (item) => item.id === this.$store.state.workspace.currentProjectId,
       );
       );
       const pipeline = this.pipelines.find((item) => item.id === this.editingPipelineId);
       const pipeline = this.pipelines.find((item) => item.id === this.editingPipelineId);
-      return str.replaceAll('{projectName}', project.name)
-        .replaceAll('{projectId}', project.id)
-        .replaceAll('{pipelineName}', this.pipelines.find(pipeline.name));
+      return str.replaceAll('{projectName}', project.name).replaceAll('{projectId}', project.id)
+        .replaceAll('{pipelineName}', pipeline.name);
     },
     },
   },
   },
 };
 };