fix(web): 修复节点入参不更新

This commit is contained in:
2025-07-16 22:54:48 +08:00
parent a3c2250285
commit 72a9d58f4c
9 changed files with 18 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
import type {NodeProps} from '@xyflow/react'
import React, {useMemo} from 'react'
import React, {useCallback} from 'react'
import {generateAllIncomerOutputVariablesFormOptions} from '../Helper.tsx'
import {useContextStore} from '../store/ContextStore.ts'
import {useDataStore} from '../store/DataStore.ts'
@@ -11,7 +11,7 @@ const OutputNode = (props: NodeProps) => {
const {getData} = useDataStore()
const {getInputSchema} = useContextStore()
const columnsSchema = useMemo(
const columnsSchema = useCallback(
() => [
{
type: 'select',
@@ -27,9 +27,7 @@ const OutputNode = (props: NodeProps) => {
getData(),
),
},
],
[props.id],
)
], [props.id])
return (
<AmisNode