service 在 form 下面的逻辑优化

This commit is contained in:
2betop 2021-06-01 19:03:55 +08:00
parent 9bfae87df0
commit 7ffd8c8262

View File

@ -216,11 +216,21 @@ export default class Service extends React.Component<ServiceProps> {
}
}
afterDataFetch(data: any) {
this.initInterval(data);
afterDataFetch(schema: any) {
const {onBulkChange, formMode} = this.props;
if (formMode && schema?.data && onBulkChange) {
onBulkChange(schema?.data);
}
this.initInterval(schema);
}
afterSchemaFetch(schema: any) {
const {onBulkChange, formMode} = this.props;
if (formMode && schema?.data && onBulkChange) {
onBulkChange(schema.data);
}
this.initInterval(schema);
}