Merge "fix: first data fetch when the page has initial filter conditions"
This commit is contained in:
commit
6d1db7d8e2
@ -33,7 +33,6 @@ import Notify from 'components/Notify';
|
||||
import { checkTimeIn } from 'utils/time';
|
||||
import checkItemPolicy from 'resources/skyline/policy';
|
||||
import NotFound from 'components/Cards/NotFound';
|
||||
import { getTags } from 'components/MagicInput';
|
||||
import { getPath, getLinkRender } from 'utils/route-map';
|
||||
import styles from './index.less';
|
||||
|
||||
@ -83,8 +82,7 @@ export default class BaseList extends React.Component {
|
||||
location.key === this.props.location.key
|
||||
) {
|
||||
const params = this.initFilter;
|
||||
const { tags = [] } = getTags(params, this.searchFilters);
|
||||
if (!tags.length && !this.filterTimeKey) {
|
||||
if (!this.filterTimeKey) {
|
||||
const { limit, page } = this.store.list;
|
||||
this.list.filters = {};
|
||||
this.handleFetch({ ...params, limit, page }, true);
|
||||
|
Loading…
Reference in New Issue
Block a user