mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
fix:Service同步数据问题
This commit is contained in:
parent
9026a19a93
commit
272e0cc3f9
@ -513,7 +513,7 @@ export default class Service extends React.Component<ServiceProps> {
|
||||
// 初始化接口返回的是整个 response,
|
||||
// 保存 ajax 请求的时候返回时数据部分。
|
||||
const data = result?.hasOwnProperty('ok') ? result.data ?? {} : result;
|
||||
const {onBulkChange, dispatchEvent, store} = this.props;
|
||||
const {onBulkChange, dispatchEvent, store, formStore} = this.props;
|
||||
|
||||
dispatchEvent?.(
|
||||
'fetchInited',
|
||||
@ -527,7 +527,7 @@ export default class Service extends React.Component<ServiceProps> {
|
||||
})
|
||||
);
|
||||
|
||||
if (!isEmpty(data) && onBulkChange) {
|
||||
if (!isEmpty(data) && onBulkChange && formStore) {
|
||||
onBulkChange(data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user