From c68d489d7c4ee6e42bd3a794854e18174de7d8d5 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Sun, 10 Jan 2021 11:13:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=8E=B7=E5=8F=96asset=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=95=B0=E6=8D=AE=E9=92=B1=E5=88=A0=E9=99=A4=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=BA=E7=A9=BA=E7=9A=84=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/asset/asset.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue index a78cf49c3..ffa9523a6 100644 --- a/nezha-fronted/src/components/page/asset/asset.vue +++ b/nezha-fronted/src/components/page/asset/asset.vue @@ -496,10 +496,14 @@ if(this.searchLabel.tags && this.searchLabel.tags!=''){ this.searchLabel.tags=encodeURIComponent(this.searchLabel.tags) } + Object.keys(this.searchLabel).forEach(key=>{ + if(!this.searchLabel[key]&&this.searchLabel[key]!==0){ + delete this.searchLabel[key] + } + }); this.$get('asset', this.searchLabel).then(response => { this.tools.loading = false; if (response.code === 200) { - // response.data.list=response.data.list.concat(response.data.list,response.data.list,response.data.list,response.data.list,response.data.list,response.data.list,response.data.list) this.tableData = response.data.list; this.pageObj.total = response.data.total; bus.$emit('asset-property-change');