From d777184fd5a40a1eea1968f301a3b79fbe5114b4 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 13 Mar 2024 18:33:08 +0800 Subject: [PATCH] feat: http run --- web/app/components/workflow/nodes/http/panel.tsx | 6 ++++++ web/app/components/workflow/nodes/http/use-config.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/web/app/components/workflow/nodes/http/panel.tsx b/web/app/components/workflow/nodes/http/panel.tsx index 4868892980..c8470fe0a9 100644 --- a/web/app/components/workflow/nodes/http/panel.tsx +++ b/web/app/components/workflow/nodes/http/panel.tsx @@ -15,6 +15,7 @@ import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/compo import { Settings01 } from '@/app/components/base/icons/src/vender/line/general' import type { NodePanelProps } from '@/app/components/workflow/types' import BeforeRunForm from '@/app/components/workflow/nodes/_base/components/before-run-form' +import ResultPanel from '@/app/components/workflow/run/result-panel' const i18nPrefix = 'workflow.nodes.http' @@ -55,8 +56,11 @@ const Panel: FC> = ({ varInputs, inputVarValues, setInputVarValues, + runResult, } = useConfig(id, data) + // console.log(inputs) + return (
@@ -67,6 +71,7 @@ const Panel: FC> = ({ } > > = ({ runningStatus={runningStatus} onRun={handleRun} onStop={handleStop} + result={} /> )}
diff --git a/web/app/components/workflow/nodes/http/use-config.ts b/web/app/components/workflow/nodes/http/use-config.ts index fa777e9a64..e8061cd118 100644 --- a/web/app/components/workflow/nodes/http/use-config.ts +++ b/web/app/components/workflow/nodes/http/use-config.ts @@ -75,6 +75,7 @@ const useConfig = (id: string, payload: HttpNodeType) => { handleStop, runInputData, setRunInputData, + runResult, } = useOneStepRun({ id, data: inputs, @@ -129,6 +130,7 @@ const useConfig = (id: string, payload: HttpNodeType) => { varInputs, inputVarValues, setInputVarValues, + runResult, } }