Skip to content

Commit

Permalink
fix(DatePicker): fix DatePicker week parseToDayjs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed Dec 4, 2024
1 parent c88163b commit f79aa6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/date-picker/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export function parseToDayjs(
return nextWeek;
}
}
// 判断是week直接返回,否则经过YYYY-MM-D处理会导致错误
return dayjs(dateText);
}

// format quarter
Expand Down

0 comments on commit f79aa6b

Please sign in to comment.