mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix: 添加任务时开始时间和结束时间为同一天可能发生报错
This commit is contained in:
parent
117d0fbcef
commit
4fb971a935
@ -353,7 +353,10 @@ export default {
|
||||
let tempc = $A.date2string(times, "Y-m-d H:i");
|
||||
if (tempc[0] && tempc[1]) {
|
||||
if ($A.rightExists(tempc[0], '00:00') && $A.rightExists(tempc[1], '00:00')) {
|
||||
this.$set(times, 1, tempc[1].replace("00:00", "23:59"));
|
||||
this.$set(this.addData, 'times', [
|
||||
tempc[0],
|
||||
tempc[1].replace("00:00", "23:59")
|
||||
])
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user