fix(web): 修复变量校验没有包含入参

This commit is contained in:
v-zhangjc9
2025-07-11 14:43:26 +08:00
parent bf37c163fb
commit eae0d8dacd
4 changed files with 10 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ function FlowEditor(props: FlowEditorProps) {
onConnect,
} = useFlowStore()
const {setInputSchema} = useContextStore()
const {inputSchema, setInputSchema} = useContextStore()
useEffect(() => {
// language=JSON
@@ -142,7 +142,7 @@ function FlowEditor(props: FlowEditorProps) {
if (commonInfo.debug) {
console.info('Save', JSON.stringify({nodes, edges, data}))
}
checkSave(nodes, edges, data)
checkSave(inputSchema, nodes, edges, data)
props.onGraphDataChange({nodes, edges, data})
} catch (e) {
// @ts-ignore