修改禅道已知bug
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
// 将半年的时间单位换算成毫秒
|
||||
var halfYear = 365 / 2 * 24 * 3600 * 1000
|
||||
// 半年前的时间(毫秒单位)
|
||||
var pastResult = curDate - halfYear
|
||||
var pastResult = curDate + halfYear
|
||||
// 日期函数,定义起点为半年前
|
||||
var pastDate = new Date(pastResult)
|
||||
var pastYear = pastDate.getFullYear()
|
||||
@@ -256,7 +256,7 @@
|
||||
if (pastDay >= 0 && pastDay <= 9) {
|
||||
pastDay = '0' + pastDay
|
||||
}
|
||||
var endDate = pastYear + '-' + pastMonth + '-' + pastDay
|
||||
var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
|
||||
return endDate
|
||||
},
|
||||
pageOnChange(page) {
|
||||
|
||||
Reference in New Issue
Block a user