Skip to content

Commit 4148dd4

Browse files
committed
fix: update selectedStatusType to handle boolean values and adjust API query accordingly
1 parent d86441a commit 4148dd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ui/src/views/system/resource-management/application

‎ui/src/views/system/resource-management/application/index.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const searchFields = computed(() => [
3939
],
4040
},
4141
])
42-
const selectedStatusType = ref<string[]>([])
42+
const selectedStatusType = ref<boolean | null>(null)
4343
const applicationStatusOptions = computed(() => [
4444
{ value: true, label: '已发布' },
4545
{ value: false, label: '未发布' },
@@ -56,7 +56,7 @@ function loadApplicationPage() {
5656
return SystemResourceApplicationApi.getApplicationPage(pagination.value, {
5757
...applicationQuery.value,
5858
...(selectedWorkspaceIds.value.length ? { workspace_ids: JSON.stringify(selectedWorkspaceIds.value) } : {}),
59-
status: selectedStatusType.value,
59+
...(selectedStatusType.value !== null ? { status: JSON.stringify([selectedStatusType.value]) } : {}),
6060
})
6161
.then((page) => {
6262
applicationData.value = page.records

0 commit comments

Comments
 (0)