From f2461b6f271e33f0ec94b4d820c9cb9306e12e35 Mon Sep 17 00:00:00 2001 From: zyh Date: Tue, 2 Aug 2022 11:16:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=8C=83=E5=9B=B4=E6=AF=94=E8=BE=83=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/overview/chart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue index 998daa544..d52fc8b89 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue @@ -389,7 +389,7 @@ export default { const hour = tData.getHours() > 9 ? tData.getHours() : '0' + tData.getHours() const minute = tData.getMinutes() > 9 ? tData.getMinutes() : '0' + tData.getMinutes() const dateFormatStr = this.timeFormatMain.split(' ')[0] - const diffSec = (this.timezoneToUtcTime(this.timeRange[1]) - this.timezoneToUtcTime(this.timeRange[0])) + const diffSec = (this.momentStrToTimestamp(this.timeRange[1]) - this.momentStrToTimestamp(this.timeRange[0])) const secOneDay = 24 * 60 * 60 * 1000// 1天的毫秒数 let str = '' if (dateFormatStr === 'DD/MM/YYYY') {