[bug][UI]Fixed a bug where the environment name of a task could not be changed when a workflow was created(issue-12457) (#13148)

This commit is contained in:
yangyang zhong 2023-02-02 14:53:21 +08:00 committed by GitHub
parent b9ef4a7177
commit 615b1dbb37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export function useEnvironmentName(
if (options.value.length === 0) {
model.environmentCode = null
} else {
isCreate && (model.environmentCode = options.value[0].value)
(isCreate && !model.environmentCode) && (model.environmentCode = options.value[0].value)
}
}