Skip to content

Commit

Permalink
fix(DatePicker): fix DatePicker week parseToDayjs bug (#1994)
Browse files Browse the repository at this point in the history
Co-authored-by: Heising <heising@travelconnect.cn>
  • Loading branch information
HaixingOoO and Heising authored Dec 4, 2024
1 parent c88163b commit e1c0b85
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 e1c0b85

Please sign in to comment.