mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-22 14:16:42 +08:00
Feat: Switching the programming language of the code operator will switch the corresponding language template #3221 (#7770)
### What problem does this PR solve? Feat: Switching the programming language of the code operator will switch the corresponding language template #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -294,7 +294,13 @@ export const useHandleFormValuesChange = (
|
||||
useEffect(() => {
|
||||
const subscription = form?.watch((value, { name, type, values }) => {
|
||||
if (id && name) {
|
||||
console.log('🚀 ~ useEffect ~ value:', type, values);
|
||||
console.log(
|
||||
'🚀 ~ useEffect ~ value:',
|
||||
name,
|
||||
type,
|
||||
values,
|
||||
operatorName,
|
||||
);
|
||||
let nextValues: any = value;
|
||||
|
||||
// Fixed the issue that the related form value does not change after selecting the freedom field of the model
|
||||
@ -320,8 +326,8 @@ export const useHandleFormValuesChange = (
|
||||
category_description: buildCategorizeObjectFromList(value.items),
|
||||
};
|
||||
}
|
||||
// Manually triggered form updates are synchronized to the canvas
|
||||
if (type) {
|
||||
// Manually triggered form updates are synchronized to the canvas
|
||||
updateNodeForm(id, nextValues);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user