From 1783ce55eff5a31442e31b77c76de4d1a9bca88e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 8 Jul 2024 11:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=8E=E7=BB=86=E6=95=B0=E6=8D=AE=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E4=B8=BA0=E7=9A=84=E6=97=B6=E5=80=99=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableForm/src/TableForm.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue index ccb16064c..5db0a2b76 100644 --- a/src/components/TableForm/src/TableForm.vue +++ b/src/components/TableForm/src/TableForm.vue @@ -607,6 +607,9 @@ const TableBaseForm_Ref = ref() const validateForm = () => { console.log(TableBaseForm_Ref.value) let _lists = TableBaseForm_Ref.value?.map((v) => v.validate()) + if(!_lists ||_lists.length == 0){ + return false + } return Promise.all(_lists) .then(() => { return true