pref(flowEditor): 显式定义ReactFlow的id,避免出现背景样式丢失的问题

master
钟良源 5 months ago
parent 63010371d0
commit 3dccccae21

@ -614,6 +614,7 @@ const FlowEditor: React.FC = () => {
<div ref={reactFlowWrapper} style={{ width: '100%', height: '100%', position: 'relative' }}
onContextMenu={(e) => e.preventDefault()}>
<ReactFlow
id={new Date().getTime().toString()}
nodes={nodes}
edges={edges}
nodeTypes={nodeTypes}

Loading…
Cancel
Save