fix: In the workflow knowledge base, the specified reply node failed to parse the global variable input #4524 (#4528)

This commit is contained in:
shaohuzhang1 2025-12-17 10:44:47 +08:00 committed by shaohuzhang1
parent ce0e845e6e
commit 55319c7a89

View File

@ -51,7 +51,7 @@ const nodeFields = computed(() => {
const fields = props.nodeModel.properties.user_input_field_list.map((item: any) => ({
label: typeof item.label == 'string' ? item.label : item.label.label,
value: item.field,
globeLabel: `{{global.${typeof item.label == 'string' ? item.label : item.label.label}}}`,
globeLabel: `{{global.${item.field}}}`,
globeValue: `{{context['global'].${item.field}}}`,
}))
set(props.nodeModel.properties.config, 'globalFields', fields)