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 });