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 }