From f3b0dc4e1d0c9ebd4eb6087fb3bbd4441846f36c Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Mon, 8 Jul 2024 16:52:00 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=20?= =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B8=A5=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=99?= =?UTF-8?q?=E0=B8=AA=E0=B8=96=E0=B8=B2=E0=B8=99=E0=B8=B0=E0=B9=80=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B9=89=E0=B8=A7=E0=B9=84=E0=B8=A1=E0=B9=88=20?= =?UTF-8?q?=E0=B8=AD=E0=B8=B1=E0=B8=9E=E0=B9=80=E0=B8=94=E0=B8=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/04_product-service/MainPage.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d631d08c..0e10147c 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -469,7 +469,7 @@ async function toggleStatusProduct(id: string, status: Status) { status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE', }); - await fetchListOfProduct(); + await alternativeFetch(); flowStore.rotate(); } @@ -478,7 +478,7 @@ async function toggleStatusService(id: string, status: Status) { status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE', }); - await fetchListOfService(); + await alternativeFetch(); flowStore.rotate(); } async function toggleStatusType(id: string, status: Status) { @@ -973,6 +973,11 @@ async function fetchStatus() { } async function alternativeFetch() { + + +console.log('asdasds'); + + if (productAndServiceTab.value === 'all') { await fetchListOfProductAndService(); flowStore.rotate();