feat(web): 完成分支节点动态改变handle
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type {NodeProps} from '@xyflow/react'
|
||||
import React, {useCallback} from 'react'
|
||||
import React, {useMemo} 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 = useCallback(
|
||||
const columnsSchema = useMemo(
|
||||
() => [
|
||||
{
|
||||
type: 'select',
|
||||
|
||||
Reference in New Issue
Block a user