From 8b52629b0b4a4d20f79eadfe98b882b2e0c93f85 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 22 Nov 2024 15:55:30 +0100 Subject: [PATCH] refactor: refs #8207 improve logic --- src/components/ui/VnPaginate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index ae9259315..cc15ddb28 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -132,10 +132,10 @@ const addFilter = async (filter, params) => { async function fetch(params, keepPagination = false) { useArrayData(props.dataKey, params); - const { limit, skip } = arrayData.store; if (!keepPagination) await arrayData.fetch({ append: false }); else { + const { limit, skip } = store; store.limit = limit + skip; store.skip = 0; await arrayData.fetch({ append: false });