fix: sync and update the evaluation result

This commit is contained in:
jialin
2025-06-18 11:48:09 +08:00
parent 9d1e6df8f0
commit 9295f9cef3
11 changed files with 196 additions and 136 deletions
+6
View File
@@ -530,6 +530,10 @@ export const useCheckCompatibility = () => {
return noLocalValue || noOllamaValue;
};
const clearCahceFormValues = () => {
cacheFormValuesRef.current = {};
};
const handleOnValuesChange = async (params: {
changedValues: any;
allValues: any;
@@ -537,6 +541,7 @@ export const useCheckCompatibility = () => {
}) => {
const { allValues, source } = params;
if (_.isEqual(cacheFormValuesRef.current, allValues)) {
console.log('No changes detected, skipping evaluation.');
return;
}
@@ -604,6 +609,7 @@ export const useCheckCompatibility = () => {
handleBackendChangeBefore,
handleOnValuesChange: debounceHandleValuesChange,
handleEvaluateOnChange: handleOnValuesChange,
clearCahceFormValues,
warningStatus,
checkTokenRef,
submitAnyway