fix(web): app file

This commit is contained in:
zhaoying
2026-03-27 18:03:09 +08:00
parent 7dce63dc0b
commit 57b6b34567
9 changed files with 37 additions and 27 deletions

View File

@@ -34,7 +34,8 @@ const Workflow = forwardRef<WorkflowRef, { onFeaturesLoad?: (features: FeaturesC
chatVariables,
setChatVariables,
handleAddNotes,
handleSaveFeaturesConfig
handleSaveFeaturesConfig,
features
} = useWorkflowGraph({ containerRef, miniMapRef, onFeaturesLoad });
const onDragOver = (event: React.DragEvent) => {
@@ -55,8 +56,9 @@ const Workflow = forwardRef<WorkflowRef, { onFeaturesLoad?: (features: FeaturesC
handleRun,
graphRef,
addVariable,
chatVariables,
config,
features: config?.features,
features: features,
handleSaveFeaturesConfig
}))
return (
@@ -99,6 +101,7 @@ const Workflow = forwardRef<WorkflowRef, { onFeaturesLoad?: (features: FeaturesC
<Chat
ref={chatRef}
data={config}
features={features}
graphRef={graphRef}
appId={config?.app_id as string}
/>