Skip to content

Commit 61bf98e

Browse files
committed
fix: useForm trigger watchEffect, close #4932
1 parent 0ae5d7a commit 61bf98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/useForm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function useForm(
328328
});
329329
validate(names, { trigger: 'change' });
330330
isFirstTime = false;
331-
oldModel = cloneDeep(model);
331+
oldModel = cloneDeep(toRaw(model));
332332
};
333333

334334
const debounceOptions = options?.debounce;

0 commit comments

Comments
 (0)