master
271556543@qq.com 3 years ago
parent 8db83a984b
commit 8d813964d2

@ -219,7 +219,7 @@
//
let startDay =
new Date(`${year}-${month}-1`).getDay() != 0 ? new Date(`${year}-${month}-1`).getDay() : 7
new Date(`${year}/${month}/1`).getDay() != 0 ? new Date(`${year}/${month}/1`).getDay() : 7
//let arrayLength = Math.ceil((mDays.get(month) + startDay) / 7)
let arrayLength = 6
@ -240,8 +240,8 @@
type: 2
})
} else {
let nowDate = `${new Date().getFullYear()}-${new Date().getMonth()+1}-${new Date().getDate()}`
nowDate == `${this.year}-${this.month}-${date}` ?
let nowDate = `${new Date().getFullYear()}/${new Date().getMonth()+1}/${new Date().getDate()}`
nowDate == `${this.year}/${this.month}/${date}` ?
res[i - 1].push({
date,
type: 0,

Loading…
Cancel
Save