fix: update skip calculation to consider filter limit
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
1a498ca820
commit
ae71c80fb3
|
@ -245,7 +245,7 @@ export function useArrayData(key, userOptions) {
|
||||||
async function loadMore() {
|
async function loadMore() {
|
||||||
if (!store.hasMoreData) return;
|
if (!store.hasMoreData) return;
|
||||||
|
|
||||||
store.skip = store.limit * store.page;
|
store.skip = (store?.filter?.limit ?? store.limit) * store.page;
|
||||||
store.page += 1;
|
store.page += 1;
|
||||||
|
|
||||||
await fetch({ append: true });
|
await fetch({ append: true });
|
||||||
|
|
Loading…
Reference in New Issue