mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
chore: 调整 servie 数据获取后的逻辑 close: 2658 (#3525)
This commit is contained in:
parent
9d3f943762
commit
64d8c3e41e
@ -319,8 +319,8 @@ export default class Service extends React.Component<ServiceProps> {
|
||||
// 初始化接口返回的是整个 response,
|
||||
// 保存 ajax 请求的时候返回时数据部分。
|
||||
const data = result?.hasOwnProperty('ok') ? result.data : result;
|
||||
const {onBulkChange, formStore} = this.props;
|
||||
if (formStore && !isEmpty(data) && onBulkChange) {
|
||||
const {onBulkChange} = this.props;
|
||||
if (!isEmpty(data) && onBulkChange) {
|
||||
onBulkChange(data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user