列表加载更多

This commit is contained in:
2025-09-30 17:18:44 +08:00
parent 9c9be49f0e
commit 5f13effcd4
6 changed files with 419 additions and 339 deletions

View File

@@ -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,