diff --git a/js/date-picker/format.ts b/js/date-picker/format.ts index a1d8b254f9..6a3ef3573e 100644 --- a/js/date-picker/format.ts +++ b/js/date-picker/format.ts @@ -48,6 +48,8 @@ export function parseToDayjs( return nextWeek; } } + // 判断是week直接返回,否则经过YYYY-MM-D处理会导致错误 + return dayjs(dateText); } // format quarter