列表加载更多
This commit is contained in:
@@ -435,11 +435,11 @@ export const useListStore = create<TennisStore>()((set, get) => ({
|
||||
const state = get();
|
||||
const currentPageState = state.isSearchResult ? state.searchPageState : state.listPageState;
|
||||
const { pageOption, isHasMoreData } = currentPageState || {};
|
||||
|
||||
|
||||
if (!isHasMoreData) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const newPageOption = {
|
||||
page: (pageOption?.page || 1) + 1,
|
||||
pageSize: 20,
|
||||
|
||||
Reference in New Issue
Block a user