From 3ed5f4da1a8bc6b87593c359af8a38e513ea17fb Mon Sep 17 00:00:00 2001 From: lvxiaojiao Date: Mon, 22 May 2023 10:28:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:form=E5=88=B7=E6=96=B0=E6=94=AF=E6=8C=81in?= =?UTF-8?q?ited=E4=BA=8B=E4=BB=B6&=E5=A2=9E=E5=8A=A0asyncApiFinished?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-core/src/renderers/Form.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/amis-core/src/renderers/Form.tsx b/packages/amis-core/src/renderers/Form.tsx index f979866cb..bb9808083 100644 --- a/packages/amis-core/src/renderers/Form.tsx +++ b/packages/amis-core/src/renderers/Form.tsx @@ -1154,17 +1154,12 @@ export default class Form extends React.Component { } const cbResult = until( () => store.checkRemote(finnalAsyncApi as Api, store.data), - (ret: any) => { - return ret && ret[finishedField || 'finished']; - }, + (ret: any) => ret && ret[finishedField || 'finished'], cancel => (this.asyncCancel = cancel), checkInterval ).then((value: any) => { // 派发asyncApiFinished事件 - dispatchEvent( - 'asyncApiFinished', - createObject(data, store.data) - ); + dispatchEvent('asyncApiFinished', store.data); }); return { cbResult,