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,6 +1,6 @@
import type {NodeProps} from '@xyflow/react'
import {Tag} from 'antd'
import React, {useEffect, useMemo} from 'react'
import React, {useCallback, useEffect, useMemo} from 'react'
import {useContextStore} from '../store/ContextStore.ts'
import {useDataStore} from '../store/DataStore.ts'
import {useFlowStore} from '../store/FlowStore.ts'
@@ -31,7 +31,7 @@ const LlmNode = (props: NodeProps) => {
)
}, [props.id])
const columnsSchema = useMemo(() => [
const columnsSchema = useCallback(() => [
...inputsFormColumns(props.id, getInputSchema(), getNodes(), getEdges(), getData()),
{
type: 'divider',