mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: 修复 autoGenerateFilter 导致 crud 加载两次问题 (#3462)
This commit is contained in:
parent
c809b03c6f
commit
fda79874f8
@ -465,13 +465,16 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
const store = this.props.store;
|
||||
const {store, autoGenerateFilter} = this.props;
|
||||
|
||||
if (this.props.perPage) {
|
||||
store.changePage(store.page, this.props.perPage);
|
||||
}
|
||||
|
||||
if (!this.props.filter || (store.filterTogggable && !store.filterVisible)) {
|
||||
if (
|
||||
(!this.props.filter || (store.filterTogggable && !store.filterVisible)) &&
|
||||
!autoGenerateFilter
|
||||
) {
|
||||
this.handleFilterInit({});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user