fix: The selected variable of the variable assignment node in advanced orchestration does not echo (#3819)

This commit is contained in:
shaohuzhang1 2025-08-05 16:41:42 +08:00 committed by GitHub
parent 47c51c9466
commit 1d53b768ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -90,7 +90,11 @@ const validate = () => {
defineExpose({ validate })
onMounted(() => {
options.value = props.global
? props.nodeModel.get_up_node_field_list(false, true).filter((v: any) => v.value === 'global')
? props.nodeModel
.get_up_node_field_list(false, true)
.filter(
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
)
: props.nodeModel.get_up_node_field_list(false, true)
})
</script>

View File

@ -46,8 +46,6 @@ class AppNode extends HtmlResize.view {
if (props.model.properties.noRender) {
delete props.model.properties.noRender
} else {
console.log('ss', props.model.properties.stepName)
console.log(props.graphModel.nodes, this)
props.model.properties.stepName = getNodeName(
props.graphModel.nodes.filter((node: any) => node.id !== props.model.id),
props.model.properties.stepName,