Merge pull request #572 from RickCole21/master

修复form中的service轮训问题
This commit is contained in:
liaoxuezhi 2020-05-06 18:43:33 +08:00 committed by GitHub
commit 82ac17d59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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 &&