diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts index 8cdcf8f0a1..7dcee5d038 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts @@ -54,6 +54,7 @@ export function useChildNode({ loading.value = false if (!model.processDefinitionCode) { model.processDefinitionCode = options.value[0].value + if (!model.name) model.name = options.value[0].label } } const getProcessListByCode = async (processCode: number) => { @@ -63,7 +64,7 @@ export function useChildNode({ } const onChange = (code: number, options: { label: string }) => { - model.name = options.label + if (!model.name) model.name = options.label } onMounted(() => {