diff --git a/src/route/proj/ProjNew.tsx b/src/route/proj/ProjNew.tsx index 86233f2..d8691c2 100644 --- a/src/route/proj/ProjNew.tsx +++ b/src/route/proj/ProjNew.tsx @@ -333,6 +333,7 @@ export default function ProjNew() { locale={locale} // style={{ width: '100%' }} style={{ height: '50px', width: '800px', fontSize: 16, background: '#eeeeee', }} + disabledDate={(current) => current && current > dayjs().endOf('day')} /> diff --git a/src/route/proj/edit/ProjEditStep2.tsx b/src/route/proj/edit/ProjEditStep2.tsx index 7ce7bdd..5f88aeb 100644 --- a/src/route/proj/edit/ProjEditStep2.tsx +++ b/src/route/proj/edit/ProjEditStep2.tsx @@ -638,6 +638,7 @@ export default function ProjEditStep2(props: any) { locale={locale} // style={{ width: '100%' }} style={{ height: '50px', width: '411px', fontSize: '16px' }} + disabledDate={(current) => current && current > dayjs().endOf('day')} />