diff --git a/src/App.vue b/src/App.vue index 67da2c4bc4e31f4f3f44dca22a9587a82019f8dd..cc9690fc087569b63d37adaaf3ec93dedba4c72e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,7 +49,7 @@ export default { ${this.setNum(curDate.getHours())}:${this.setNum(curDate.getMinutes())}-${this.setNum(endDate.getHours())}:${this.setNum(endDate.getMinutes())}

` - if (this.txtRestIdx.trim().length > 0 && parseInt(this.txtRestIdx) === idx) { + if (this.txtRestIdx.trim().length > 0 && parseInt(this.txtRestIdx) === index) { // 分割间歇 const restTime = this.txtRestInterval.trim().length > 0 ? parseFloat(this.txtRestInterval) * 60 * 60 * 1000 : 0 dateTime += restTime