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