fix: 修复crud 默认不展示过滤条件初始请求没有发送的问题

This commit is contained in:
2betop 2022-06-20 10:59:39 +08:00
parent abb615a00e
commit 0aeea91a08

View File

@ -490,8 +490,8 @@ export default class CRUD extends React.Component<CRUDProps, any> {
// 另外autoGenerateFilter时table 里面会单独处理这块逻辑
// 所以这里应该忽略 autoGenerateFilter 情况
if (
(!this.props.filter || (store.filterTogggable && !store.filterVisible)) &&
!autoGenerateFilter
(!this.props.filter && !autoGenerateFilter) ||
(store.filterTogggable && !store.filterVisible)
) {
this.handleFilterInit({});
}