mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
修复 options 可能不会初始拉取 source 接口的问题
This commit is contained in:
parent
74db3c0085
commit
f151321a71
@ -299,10 +299,10 @@ export default class Form extends React.Component<FormProps, object> {
|
||||
submitOnInit
|
||||
} = this.props;
|
||||
|
||||
store.setInited(true);
|
||||
const hooks:Array<(data:any) => Promise<any>> = this.hooks['init'] || [];
|
||||
await Promise.all(hooks.map(hook => hook(store.data)));
|
||||
|
||||
store.setInited(true);
|
||||
onInit && onInit(store.data);
|
||||
|
||||
submitOnInit && this.handleAction(undefined, {
|
||||
|
Loading…
Reference in New Issue
Block a user