修改禅道已知bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user