From a3d8554e5e72668e23a67fb263bcdbf0f9e926e5 Mon Sep 17 00:00:00 2001 From: wuxue Date: Thu, 11 Jul 2024 17:11:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20useAntdTable=E5=9C=A8manual=3Dtrue?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B,defaultParam=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E5=A1=AB=E5=85=85=E8=A1=A8=E5=8D=95=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hooks/src/useAntdTable/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks/src/useAntdTable/index.tsx b/packages/hooks/src/useAntdTable/index.tsx index 9ae143dc59..55a9de2c45 100644 --- a/packages/hooks/src/useAntdTable/index.tsx +++ b/packages/hooks/src/useAntdTable/index.tsx @@ -208,7 +208,7 @@ const useAntdTable = ( run(...params); return; } - if (!manual && ready) { + if (ready) { allFormDataRef.current = defaultParams?.[1] || {}; restoreForm(); _submit(defaultParams?.[0]);