diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index 6d25dc105..ae9259315 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -136,11 +136,11 @@ async function fetch(params, keepPagination = false) { if (!keepPagination) await arrayData.fetch({ append: false }); else { - arrayData.store.limit = limit + skip; - arrayData.store.skip = 0; + store.limit = limit + skip; + store.skip = 0; await arrayData.fetch({ append: false }); - arrayData.store.limit = limit; - arrayData.store.skip = skip; + store.limit = limit; + store.skip = skip; } if (!store.hasMoreData) isLoading.value = false;