From f3471fe5ab683768331a2c6c566156d8954a4c2f Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 9 Sep 2024 17:20:16 +0200 Subject: [PATCH] fix: refs #4074 await to watch --- 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 d51b0fcef..441a8ff48 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -120,7 +120,7 @@ watch( watch( () => [props.url, props.filter, props.userParams], - ([url, filter, userParams]) => fetch({ url, filter, userParams }) + ([url, filter, userParams]) => mounted.value && fetch({ url, filter, userParams }) ); const addFilter = async (filter, params) => {