chore: 调整 servie 数据获取后的逻辑 close: 2658 (#3525)

This commit is contained in:
liaoxuezhi 2022-01-28 14:39:17 +08:00 committed by GitHub
parent 9d3f943762
commit 64d8c3e41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}