From 3a4c0e729af2556f2060a07edf35b253afa203da Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 22 Nov 2024 15:52:22 +0100 Subject: [PATCH] refactor: refs #8207 improve logic --- src/components/ui/VnPaginate.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;