mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
feat: code node can run
This commit is contained in:
@ -43,12 +43,22 @@ const useConfig = (id: string, payload: CodeNodeType) => {
|
||||
handleStop,
|
||||
runInputData,
|
||||
setRunInputData,
|
||||
runResult,
|
||||
runResult: unformattedRunResult,
|
||||
} = useOneStepRun<CodeNodeType>({
|
||||
id,
|
||||
data: inputs,
|
||||
defaultRunInputData: {},
|
||||
})
|
||||
|
||||
const runResult = (() => {
|
||||
if (!unformattedRunResult)
|
||||
return {}
|
||||
|
||||
return {
|
||||
...unformattedRunResult,
|
||||
created_by: unformattedRunResult.created_by_account?.name || '',
|
||||
}
|
||||
})()
|
||||
const varInputs = toVarInputs(inputs.variables)
|
||||
|
||||
const inputVarValues = (() => {
|
||||
|
||||
Reference in New Issue
Block a user