0
0
Fork 0

fix: refs #7623 update add updateRoute prop in VnPaginate

This commit is contained in:
Jorge Penadés 2024-06-24 12:51:44 +02:00
parent ec7b0c1416
commit 9169b793a9
2 changed files with 7 additions and 2 deletions

View File

@ -77,6 +77,7 @@ async function insert() {
auto-load
ref="vnPaginateRef"
class="show"
:update-router="false"
v-bind="$attrs"
>
<template #body="{ rows }">

View File

@ -66,6 +66,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
updateRouter: {
type: Boolean,
default: true,
},
});
const emit = defineEmits(['onFetch', 'onPaginate', 'onChange']);
@ -120,7 +124,7 @@ async function fetch(params) {
useArrayData(props.dataKey, params);
store.filter.skip = 0;
store.skip = 0;
await arrayData.fetch({ append: false });
await arrayData.fetch({ append: false, updateRouter: props.updateRouter });
if (!store.hasMoreData) {
isLoading.value = false;
}