diff --git a/packages/form/src/FormBox.vue b/packages/form/src/FormBox.vue index 53a57c6b..629a1267 100644 --- a/packages/form/src/FormBox.vue +++ b/packages/form/src/FormBox.vue @@ -101,8 +101,9 @@ watchEffect(() => { const submitHandler = async () => { try { + const changeRecords = form.value?.changeRecords; const values = await form.value?.submitForm(); - emit('submit', values, { changeRecords: form.value?.changeRecords }); + emit('submit', values, { changeRecords }); } catch (e) { emit('error', e); } diff --git a/packages/form/src/FormDialog.vue b/packages/form/src/FormDialog.vue index 6488d247..d818f111 100644 --- a/packages/form/src/FormDialog.vue +++ b/packages/form/src/FormDialog.vue @@ -42,7 +42,7 @@ - 取 消 + 取 消 上一步 @@ -131,8 +131,9 @@ const closeHandler = () => { const save = async () => { try { + const changeRecords = form.value?.changeRecords; const values = await form.value?.submitForm(); - emit('submit', values, { changeRecords: form.value?.changeRecords }); + emit('submit', values, { changeRecords }); } catch (e) { emit('error', e); } diff --git a/packages/form/src/FormDrawer.vue b/packages/form/src/FormDrawer.vue index c7ad3a00..7e62b1c0 100644 --- a/packages/form/src/FormDrawer.vue +++ b/packages/form/src/FormDrawer.vue @@ -42,7 +42,7 @@ - 关闭 + 关闭 {{ confirmText }} @@ -109,8 +109,9 @@ watchEffect(() => { const submitHandler = async () => { try { + const changeRecords = form.value?.changeRecords; const values = await form.value?.submitForm(); - emit('submit', values, { changeRecords: form.value?.changeRecords }); + emit('submit', values, { changeRecords }); } catch (e) { emit('error', e); }