修复了日历的报错
This commit is contained in:
@@ -41,7 +41,7 @@ export function getdate(yue?: number): GetDate{
|
||||
while(i < month){
|
||||
|
||||
for(w = 0; w < week; w++){
|
||||
date[0][w] = {};
|
||||
date[0][w] = {list:[]};
|
||||
}
|
||||
i++;
|
||||
const zhou = Math.floor((i + w - 1) / 7)
|
||||
@@ -55,7 +55,7 @@ export function getdate(yue?: number): GetDate{
|
||||
date[zhou].push(d)
|
||||
}
|
||||
while(date[date.length - 1].length < 7){
|
||||
date[date.length - 1].push({})
|
||||
date[date.length - 1].push({list:[]})
|
||||
}
|
||||
console.log(date)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user