mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
参数错了
This commit is contained in:
parent
e7cfa1f524
commit
8ff2d1629f
@ -57,12 +57,13 @@ export class ServiceRenderer extends BasicService {
|
||||
const formStore: IFormStore = this.props.formStore;
|
||||
const onChange = this.props.onChange;
|
||||
|
||||
// 有可能有很多层 serivce,这里需要注意。
|
||||
if (formStore && this.isFormMode()) {
|
||||
const keys = Object.keys(payload.data);
|
||||
|
||||
if (keys.length) {
|
||||
formStore.setValues(payload.data);
|
||||
onChange(keys[0], payload.data[keys[0]]);
|
||||
onChange(payload.data[keys[0]], keys[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user