优化
This commit is contained in:
@@ -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)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user