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, {useMemo} from 'react'
import React, {useCallback, useMemo} from 'react'
import {useContextStore} from '../store/ContextStore.ts'
import {useDataStore} from '../store/DataStore.ts'
import {useFlowStore} from '../store/FlowStore.ts'
@@ -19,7 +19,7 @@ const CodeNode = (props: NodeProps) => {
const nodeData = getDataById(props.id)
const columnsSchema = useMemo(() => [
const columnsSchema = useCallback(() => [
...inputsFormColumns(props.id, getInputSchema(), getNodes(), getEdges(), getData()),
{
type: 'divider',