From f46ccad3389ea01bfad60877b6d599ed5f1366f9 Mon Sep 17 00:00:00 2001 From: 6281f250dc86617fa5051a8f <6281f250dc86617fa5051a8f@devide> Date: Mon, 17 Apr 2023 09:54:24 +0000 Subject: [PATCH] Auto commit --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index bfcfd3f..ea7133c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,12 +11,12 @@ export default { if (this.txtDate.length > 0) { this.result = '' const dateList = this.txtDate.split(/\n/) - for (let dateStr of x) { + for (let dateStr of dateList) { const curArr = dateStr.split('-') const start = new Date(`2023-03-01 ${curArr[0]}`).getTime() const end = new Date(`2023-03-01 ${curArr[1]}`).getTime() - this.result += dateStr, parseFloat((end-start)/1000/60) + '
' + this.result += '

' + `${dateStr}${parseFloat((end-start)/1000/60)}分钟` + '

' } } } -- GitLab