修复了周一

This commit is contained in:
theluyuan 2020-12-07 09:08:47 +08:00
parent 617735df20
commit 9e3e522057

View File

@ -93,8 +93,8 @@ export function getweek(time: string, id: string,zhou?: number){
const day = now.date() // 当前天
zhou = now.day(); // 当前周几
const year = now.year()
const startd = now.day(1).date();
const start = `${year}-${yue}-${startd}`
const startd = now.day(0).date();
const start = `${year}-${yue}-${startd > 9 ? startd : '0' + startd}`
interface Date{
day: string;
list?: Array<any>;