mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Use one-way data flow to synchronize the form data to the canvas #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -23,17 +23,13 @@ export function useHandleFreedomChange() {
|
||||
updateNodeForm(node?.id, nextValues);
|
||||
}
|
||||
|
||||
console.info('xx:', node);
|
||||
for (const key in values) {
|
||||
if (Object.prototype.hasOwnProperty.call(values, key)) {
|
||||
const element = values[key];
|
||||
|
||||
// form.reset({ ...currentValues, ...values });
|
||||
|
||||
// for (const key in values) {
|
||||
// if (Object.prototype.hasOwnProperty.call(values, key)) {
|
||||
// const element = values[key];
|
||||
|
||||
// form.setValue(key, element);
|
||||
// }
|
||||
// }
|
||||
form.setValue(key, element);
|
||||
}
|
||||
}
|
||||
},
|
||||
[form, node, updateNodeForm],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user