This commit is contained in:
yanran200730
2022-07-28 14:26:50 +08:00
parent 471d00b47c
commit f794bc6ab0

View File

@@ -388,13 +388,12 @@
const nowTime = this.$moment(new Date())
const min = nowTime.diff(this.info.remindTime, 'minute')
this.min = (60 - min)
console.log(nowTime.diff(this.info.remindTime, 'minute'))
if (this.min <= 0) {
this.isDisabled = false
clearInterval(this.timer)
} else {
this.isDisabled = true
clearInterval(this.timer)
}
}, 1000)
},