处理认证和小bug

This commit is contained in:
sijinhui
2024-02-20 13:37:20 +08:00
parent a7aa003183
commit a9ba7d1936
2 changed files with 23 additions and 14 deletions

View File

@@ -14,8 +14,9 @@ interface ComponentProps {
setCurrentDate: Dispatch<SetStateAction<Date>>;
}
const maxDate = new Date();
function DateSelectComponent({ currentDate, setCurrentDate }: ComponentProps) {
const maxDate = new Date();
// 增加键盘监听修改日期
useEffect(() => {
const keydownEvent = (e: KeyboardEvent) => {