Browse Source

fix: 流水线默认属性转换增加pipelineName

chenyitao.0928 5 years ago
parent
commit
48026e5308
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/Project/Pipeline.vue

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

@@ -547,7 +547,10 @@ export default {
       const project = this.$store.state.workspace.projectList.find(
         (item) => item.id === this.$store.state.workspace.currentProjectId,
       );
-      return str.replaceAll('{projectName}', project.name).replaceAll('{projectId}', project.id);
+      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));
     },
   },
 };