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 nowTime = this.$moment(new Date())
const min = nowTime.diff(this.info.remindTime, 'minute') const min = nowTime.diff(this.info.remindTime, 'minute')
this.min = (60 - min) this.min = (60 - min)
console.log(nowTime.diff(this.info.remindTime, 'minute'))
if (this.min <= 0) { if (this.min <= 0) {
this.isDisabled = false this.isDisabled = false
clearInterval(this.timer)
} else { } else {
this.isDisabled = true this.isDisabled = true
clearInterval(this.timer)
} }
}, 1000) }, 1000)
}, },