diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue index f08617f61..4e8964a1a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue @@ -384,7 +384,7 @@ this.endpointSearchLabel = {}; // this.pageObj.pageNo = 1; for (let item in searchObj) { - if (searchObj[item]) { + if (searchObj[item] || searchObj[item] === 0) { if (item === "endpointState") { this.$set(this.endpointSearchLabel, 'state', searchObj[item]); } else { diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index 6264c03aa..57e4303dd 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -579,7 +579,7 @@ this.endpointSearchLabel={}; this.endpointPageObj.pageNo=1; for(let item in searchObj){ - if(searchObj[item]){ + if(searchObj[item] || searchObj[item] === 0){ if (item === "endpointState") { this.$set(this.endpointSearchLabel, 'state', searchObj[item]); } else {