添加了日历跳转

This commit is contained in:
2020-10-30 15:54:55 +08:00
parent b38d0f693f
commit 6cf34e698b
3 changed files with 11 additions and 8 deletions

View File

@@ -47,7 +47,8 @@ export function getdate(yue?: number): GetDate{
const zhou = Math.floor((i + w - 1) / 7)
const d = {
day: i,
list: []
list: [],
time: now.date(i).toISOString()
}
if(date[zhou] == undefined){
date[zhou] = []
@@ -63,8 +64,8 @@ export function getdate(yue?: number): GetDate{
}
export function getweek(zhou?: number){
let now = dayjs()
export function getweek(time: string,zhou?: number){
let now = dayjs((!time ? undefined : time))
if(zhou != undefined){
now = now.day(now.day() + (zhou * 6));
}