From 6abce3c7d0b48cba5520ea182889217a357a153d Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 5 Aug 2024 15:20:07 +0200 Subject: [PATCH] hotFix(VnPaginate): watch when is mounted --- 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 c27111df4..68927bc01 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -116,7 +116,7 @@ watch( watch( () => [props.url, props.filter], - ([url, filter]) => fetch({ url, filter }) + ([url, filter]) => mounted.value && fetch({ url, filter }) ); const addFilter = async (filter, params) => {