From f072712276cb9ce8d9117b72cbc63d62ac8713ad Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Mon, 8 Jul 2024 11:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C?= 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 378a2ba07..5fa0fbd9a 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -615,12 +615,14 @@ const submitForm = async () => { formLoading.value = true if (formType.value == 'create') { const validateForm = await tableFormRef.value.validateForm() - if (props.tableFormDataLength) { + if (!validateForm && props.tableFormDataLength) { if (props.tableData.length == 0) { message.warning('请填写明细信息!') formLoading.value = false return } + formLoading.value = false + return } // 主子表——提交请求 try {