This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 936ea99 [Fix][UI Next][V1.0.0-Alpha]Fix default display of node name
in sub process node. (#9075)
936ea99 is described below
commit 936ea993031fdc2fbfacfba4bdd8588099fd380f
Author: Amy0104 <[email protected]>
AuthorDate: Tue Mar 22 15:06:55 2022 +0800
[Fix][UI Next][V1.0.0-Alpha]Fix default display of node name in sub process
node. (#9075)
---
.../src/views/projects/task/components/node/fields/use-child-node.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 8cdcf8f..7dcee5d 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(() => {