修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-15 10:30:14 +08:00
parent 30c05a935d
commit 82a407dceb
3 changed files with 15 additions and 6 deletions
+3 -3
View File
@@ -168,7 +168,7 @@
},
searchQueryList: {
type: Array,
default: ()=>{
default: () => {
return []
}
},
@@ -223,7 +223,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()
@@ -235,7 +235,7 @@
if (pastDay >= 0 && pastDay <= 9) {
pastDay = '0' + pastDay
}
var endDate = pastYear + '-' + pastMonth + '-' + pastDay
var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
return endDate
},
dateChange(item) {