From e0dcbea51f241a9eeccc5aec18a6f830814af9c9 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Sun, 7 Apr 2024 11:39:27 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 37c569f8b..950cbeaf7 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -422,7 +422,9 @@ watch(()=>props.tableData,() => { deep:true }) watch(()=>unref(formRef)?.formModel,() => { - props?.sumFormDataByForm(formRef,unref(formRef)?.formModel) + if(props?.sumFormDataByForm&&unref(formRef)?.formModel){ + props?.sumFormDataByForm(formRef,unref(formRef)?.formModel) + } },{ deep:true })