From e403493865789c4495fda3252f2d7c8fad061ece Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 27 Jul 2024 23:34:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E5=85=A8=E5=B1=80=EF=BC=9A=E5=A6=82=E6=9E=9C=20form?= =?UTF-8?q?=20value=20=E4=B8=BA=20''=20=E6=97=B6=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=20undefine=E3=80=82=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0=E6=98=AF=EF=BC=9A=E7=A9=BA=E4=B8=B2=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=BD=AE=E7=A9=BA=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=92=8C=E5=90=8E=E7=AB=AF=20db=20=E7=BB=93=E5=90=88=E3=80=82?= =?UTF-8?q?=EF=BC=88=E4=BF=9D=E6=8C=81=E5=92=8C=20vben=20=E5=8E=9F?= =?UTF-8?q?=E7=89=88=E7=BB=9F=E4=B8=80=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/hooks/useFormValues.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/Form/src/hooks/useFormValues.ts b/src/components/Form/src/hooks/useFormValues.ts index 2ff05d332..e407bfc9b 100644 --- a/src/components/Form/src/hooks/useFormValues.ts +++ b/src/components/Form/src/hooks/useFormValues.ts @@ -77,9 +77,6 @@ export function useFormValues({ if (isString(value)) { // remove params from URL if (value === '') - value = undefined - - else value = value.trim() } if (!tryDeconstructArray(key, value, res) && !tryDeconstructObject(key, value, res)) {