forked from verdnatura/salix-front
refactor: refs #8207 improve logic
This commit is contained in:
parent
9d8698fa2f
commit
3a4c0e729a
|
@ -136,11 +136,11 @@ async function fetch(params, keepPagination = false) {
|
||||||
|
|
||||||
if (!keepPagination) await arrayData.fetch({ append: false });
|
if (!keepPagination) await arrayData.fetch({ append: false });
|
||||||
else {
|
else {
|
||||||
arrayData.store.limit = limit + skip;
|
store.limit = limit + skip;
|
||||||
arrayData.store.skip = 0;
|
store.skip = 0;
|
||||||
await arrayData.fetch({ append: false });
|
await arrayData.fetch({ append: false });
|
||||||
arrayData.store.limit = limit;
|
store.limit = limit;
|
||||||
arrayData.store.skip = skip;
|
store.skip = skip;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!store.hasMoreData) isLoading.value = false;
|
if (!store.hasMoreData) isLoading.value = false;
|
||||||
|
|
Loading…
Reference in New Issue