Skip to content

Commit afdb484

Browse files
committed
feat:导出流水线功能优化 #11304
1 parent 08ff093 commit afdb484

File tree

1 file changed

+2
-2
lines changed
  • src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup

1 file changed

+2
-2
lines changed

src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
async handleSuccess (result, type = UI_MODE) {
122122
let res
123123
if (type === UI_MODE) {
124-
const newPipelineName = this.pipelineName || `${result.model.name}_${hashID().slice(0, 8)}`
124+
const newPipelineName = result.model.name
125125
res = await this.updatePipeline(result, newPipelineName)
126126
} else if (type === CODE_MODE) {
127127
this.updatePipelineMode(CODE_MODE)
@@ -159,7 +159,7 @@
159159
actionType: 'FULL_YAML2MODEL',
160160
oldYaml: result
161161
})
162-
const newPipelineName = this.pipelineName || `${modelAndSetting.model.name}_${hashID().slice(0, 8)}`
162+
const newPipelineName = modelAndSetting.model.name
163163
164164
const pipeline = {
165165
...modelAndSetting.model,

0 commit comments

Comments
 (0)