From 1b55902ca0ccffb4011e07b56a4c381bbaa42b6e Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Tue, 20 Dec 2022 11:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000986):=E3=80=90?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86=E3=80=91=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=B2=A1=E6=9C=89=E6=A0=A1=E9=AA=8C=E4=B8=8A?= =?UTF-8?q?=E9=9D=A2=E7=BA=A2=E8=89=B2=E5=B8=A6=E6=98=9F=E6=98=9F=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=A1=E6=81=AF=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=A1=AE=E5=AE=9A=E5=90=8E=E6=B2=A1=E6=9C=89=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerEditor/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/customerEditor/index.tsx b/src/pages/customerEditor/index.tsx index d642dfd..b676e82 100644 --- a/src/pages/customerEditor/index.tsx +++ b/src/pages/customerEditor/index.tsx @@ -215,11 +215,17 @@ const CustomerEditor = () => { } }, []) const isDisabled = useMemo(() => { + let count = 0 + for (const i in formData) { + count++ + } + console.log(formData, '5555') + console.log(count, '6666') let empty: any = null if (typeof (formData) == 'undefined') { return } for (const key in formData) { if (key in formData) { - if (formData[key] !== '' && typeof (formData[key]) !== 'undefined') { + if (formData[key] !== '' && typeof (formData[key]) !== 'undefined' && count === 10) { empty = false } else {