From 89a55de0706be0ea628fc7acd163240436c442e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=BA=E9=98=B3?= Date: Thu, 7 Sep 2023 10:12:44 +0800 Subject: [PATCH] [Bug] [UI] New tasks with the flag normal show a grey color (#14862) --- .../views/projects/workflow/components/dag/use-task-edit.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts index 4590490eb3..69fc85cb19 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts +++ b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts @@ -168,9 +168,9 @@ export function useTaskEdit(options: Options) { processDefinition.value.taskDefinitionList.map((task) => { if (task.code === currTask.value?.code) { setNodeName(task.code + '', taskDef.name) - let fillColor = '#f3f3f5' - if (task.flag === 'NO') { - fillColor = '#ffffff' + let fillColor = '#ffffff' + if (task.flag === 'YES') { + fillColor = '#f3f3f5' } setNodeFillColor(task.code + '', fillColor)