From 615b1dbb37b4af1ac933d4b7c608fc6c1ecfcd05 Mon Sep 17 00:00:00 2001 From: yangyang zhong <35210666+hdygxsj@users.noreply.github.com> Date: Thu, 2 Feb 2023 14:53:21 +0800 Subject: [PATCH] [bug][UI]Fixed a bug where the environment name of a task could not be changed when a workflow was created(issue-12457) (#13148) --- .../task/components/node/fields/use-environment-name.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-environment-name.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-environment-name.ts index 17b293eeba..0f959ebdfb 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-environment-name.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-environment-name.ts @@ -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) } }