From d0a7ee893acbb09ef4063f8264789420a5d77291 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 13 Oct 2023 17:27:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=97=B6=E9=97=B4=20nan=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/project/meta2d/js/meta2dMainCalc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js index 10945884a..bf195265a 100644 --- a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js +++ b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js @@ -130,7 +130,7 @@ export default { if (this.isChart && this.timeRange) { startTime = this.timeRange[0] endTime = this.timeRange[1] - } else if (this.filterTime) { + } else if (this.filterTime && this.filterTime.length { startTime = this.momentStrToTimestamp(this.filterTime[0]) endTime = this.momentStrToTimestamp(this.filterTime[1]) } From 089ab39df2e542d6cefbb563bcfb950f330f6c45 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 13 Oct 2023 17:27:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/project/meta2d/js/meta2dMainCalc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js index bf195265a..58dc7977f 100644 --- a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js +++ b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js @@ -130,7 +130,7 @@ export default { if (this.isChart && this.timeRange) { startTime = this.timeRange[0] endTime = this.timeRange[1] - } else if (this.filterTime && this.filterTime.length { + } else if (this.filterTime && this.filterTime.length) { startTime = this.momentStrToTimestamp(this.filterTime[0]) endTime = this.momentStrToTimestamp(this.filterTime[1]) }