From ae1deb9165ed0fa371d818d5b96376c2ea47238c Mon Sep 17 00:00:00 2001 From: rickcole Date: Wed, 6 May 2020 18:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dform=E4=B8=AD=E7=9A=84service?= =?UTF-8?q?=E8=BD=AE=E8=AE=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Service.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderers/Form/Service.tsx b/src/renderers/Form/Service.tsx index d20d9c01..616c123e 100644 --- a/src/renderers/Form/Service.tsx +++ b/src/renderers/Form/Service.tsx @@ -24,6 +24,7 @@ export class ServiceRenderer extends BasicService { componentDidMount() { const {formInited, addHook} = this.props; + this.mounted = true; // form层级下的所有service应该都会走这里 // 但是传入props有可能是undefined,所以做个处理 @@ -66,10 +67,10 @@ export class ServiceRenderer extends BasicService { const finnalSchema = store.schema || schema || { - controls, - tabs, - feildSet - }; + controls, + tabs, + feildSet + }; if ( finnalSchema && !finnalSchema.type &&