diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index 1a3a087c0..f426e8166 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -94,7 +94,10 @@ watch( ); watch( () => route.params.id, - () => arrayData.reloadRoute() + () => { + arrayData.reloadRoute(); + fetch(); + } ); const addFilter = async (filter, params) => { await arrayData.addFilter({ filter, params }); diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 3ea7f39d9..c495e70d5 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -49,8 +49,6 @@ export function useArrayData(key, userOptions) { store.filter.where[keyFk] = route.params.id; } } - - fetch({ append: false }); } function setOptions() {