mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
refactor(form): submitForm返回toRaw后的值
This commit is contained in:
parent
912639999d
commit
4ac1214e6a
@ -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[] = [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user