mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
feat: node before and after run
This commit is contained in:
@ -48,6 +48,12 @@ const useConfig = (id: string, payload: CodeNodeType) => {
|
||||
id,
|
||||
data: inputs,
|
||||
defaultRunInputData: {},
|
||||
beforeRunCheckValid: () => {
|
||||
return {
|
||||
isValid: true,
|
||||
// errorMessage: 'xxxx',
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
const varInputs = toVarInputs(inputs.variables)
|
||||
@ -63,7 +69,7 @@ const useConfig = (id: string, payload: CodeNodeType) => {
|
||||
|
||||
const setInputVarValues = useCallback((newPayload: Record<string, any>) => {
|
||||
setRunInputData(newPayload)
|
||||
}, [runInputData, setRunInputData])
|
||||
}, [setRunInputData])
|
||||
|
||||
return {
|
||||
inputs,
|
||||
|
||||
Reference in New Issue
Block a user