From f151321a71d600e290c8c1415d6ab07b2178fd46 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Thu, 9 May 2019 17:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20options=20=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E4=BC=9A=E5=88=9D=E5=A7=8B=E6=8B=89=E5=8F=96?= =?UTF-8?q?=20source=20=E6=8E=A5=E5=8F=A3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/Form/index.tsx b/src/renderers/Form/index.tsx index 63a3e60a0..0e4916a27 100644 --- a/src/renderers/Form/index.tsx +++ b/src/renderers/Form/index.tsx @@ -299,10 +299,10 @@ export default class Form extends React.Component { submitOnInit } = this.props; + store.setInited(true); const hooks:Array<(data:any) => Promise> = this.hooks['init'] || []; await Promise.all(hooks.map(hook => hook(store.data))); - store.setInited(true); onInit && onInit(store.data); submitOnInit && this.handleAction(undefined, {