refactor(form): submitForm返回toRaw后的值

This commit is contained in:
roymondchen 2022-04-28 20:53:07 +08:00 committed by jia000
parent 912639999d
commit 4ac1214e6a

View File

@ -177,7 +177,7 @@ export default defineComponent({
submitForm: async (native?: boolean): Promise<any> => {
try {
await elForm.value?.validate();
return native ? values.value : cloneDeep(values.value);
return native ? values.value : cloneDeep(toRaw(values.value));
} catch (invalidFields: any) {
const error: string[] = [];