From 913118c5df7f13378a71a8be1b0ab4a603c1822e Mon Sep 17 00:00:00 2001 From: likexuan Date: Fri, 18 Nov 2022 16:06:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20alert=20silence=20=E5=81=B6=E5=B0=94?= =?UTF-8?q?=E9=BB=98=E8=AE=A41=E5=B0=8F=E6=97=B6=E6=9C=AA=E9=80=89?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/alertSilenceBox.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue index e971cc1c4..b0a6056a0 100644 --- a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue @@ -311,7 +311,7 @@ export default { rangeTimeCallback () { if (this.editAlertSilence.time) { const num = new Date(this.editAlertSilence.endAt).getTime() - new Date(this.editAlertSilence.startAt).getTime() - this.rangeTime = num / (60 * 60 * 1000)// 以小时为单位 + this.rangeTime = parseInt(num / (60 * 60 * 1000))// 以小时为单位 } else { this.rangeTime = null }