From 8a40c4f9f3b856fccd3a55fb0241100ee15a4373 Mon Sep 17 00:00:00 2001 From: seungyeoneeee Date: Tue, 20 May 2025 16:38:26 +0900 Subject: [PATCH 1/4] fix: fix bug about queryTag with pagination Signed-off-by: seungyeoneeee --- .../v2/components/ServiceDetailHeader.vue | 8 +- .../v2/components/ServiceList.vue | 93 ++++++++++++++----- .../v2/stores/service-list-page-store.ts | 6 ++ 3 files changed, 80 insertions(+), 27 deletions(-) diff --git a/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue b/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue index 87f8d57211..ef97580343 100644 --- a/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue +++ b/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue @@ -78,11 +78,11 @@ const handleActionModal = (type: ModalType) => { }; const handleGoBackButton = () => { if (state.isSettingMode) { - const validUnhealthyPage = (!Number.isNaN(serviceListPageStore.unhealthyThisPage) && serviceListPageStore.unhealthyThisPage > 0) - ? serviceListPageStore.unhealthyThisPage + const validUnhealthyPage = (!Number.isNaN(serviceListPageStore.$state.unhealthyThisPage) && serviceListPageStore.unhealthyThisPage > 0) + ? serviceListPageStore.$state.unhealthyThisPage : 1; - const validHealthyPage = (!Number.isNaN(serviceListPageStore.healthyThisPage) && serviceListPageStore.healthyThisPage > 0) - ? serviceListPageStore.healthyThisPage + const validHealthyPage = (!Number.isNaN(serviceListPageStore.$state.healthyThisPage) && serviceListPageStore.$state.healthyThisPage > 0) + ? serviceListPageStore.$state.healthyThisPage : 1; router.push({ diff --git a/apps/web/src/services/alert-manager/v2/components/ServiceList.vue b/apps/web/src/services/alert-manager/v2/components/ServiceList.vue index 1c398eacf6..3d62e8025f 100644 --- a/apps/web/src/services/alert-manager/v2/components/ServiceList.vue +++ b/apps/web/src/services/alert-manager/v2/components/ServiceList.vue @@ -1,15 +1,19 @@