有可能 Service 套 Service, 深层次的 Service 也需要更新 form

This commit is contained in:
2betop 2020-07-24 10:43:36 +08:00
parent 1c53631f32
commit 4b363882c6
1 changed files with 1 additions and 5 deletions

View File

@ -57,11 +57,7 @@ export class ServiceRenderer extends BasicService {
const formStore: IFormStore = this.props.formStore;
const onChange = this.props.onChange;
if (
formStore &&
formStore === this.props.store.parentStore &&
this.isFormMode()
) {
if (formStore && this.isFormMode()) {
const keys = Object.keys(payload.data);
if (keys.length) {