mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-29 13:46:42 +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> => {
|
submitForm: async (native?: boolean): Promise<any> => {
|
||||||
try {
|
try {
|
||||||
await elForm.value?.validate();
|
await elForm.value?.validate();
|
||||||
return native ? values.value : cloneDeep(values.value);
|
return native ? values.value : cloneDeep(toRaw(values.value));
|
||||||
} catch (invalidFields: any) {
|
} catch (invalidFields: any) {
|
||||||
const error: string[] = [];
|
const error: string[] = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user