From d24ea2514aef996790ca3a6921ac7416c189f568 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 30 Sep 2026 09:42:38 +0800 Subject: [PATCH] fix: update selectedStatusType to handle boolean values and adjust API query accordingly --- ui/src/views/system/resource-management/application/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/system/resource-management/application/index.vue b/ui/src/views/system/resource-management/application/index.vue index d359061f340..7637c58caab 100644 --- a/ui/src/views/system/resource-management/application/index.vue +++ b/ui/src/views/system/resource-management/application/index.vue @@ -39,7 +39,7 @@ const searchFields = computed(() => [ ], }, ]) -const selectedStatusType = ref([]) +const selectedStatusType = ref(null) const applicationStatusOptions = computed(() => [ { value: true, label: '已发布' }, { value: false, label: '未发布' }, @@ -56,7 +56,7 @@ function loadApplicationPage() { return SystemResourceApplicationApi.getApplicationPage(pagination.value, { ...applicationQuery.value, ...(selectedWorkspaceIds.value.length ? { workspace_ids: JSON.stringify(selectedWorkspaceIds.value) } : {}), - status: selectedStatusType.value, + ...(selectedStatusType.value !== null ? { status: JSON.stringify([selectedStatusType.value]) } : {}), }) .then((page) => { applicationData.value = page.records