fix: wrap Drawer content in fragment

This commit is contained in:
2026-07-06 17:00:51 +08:00
parent b4fa3ab1fd
commit edb80b7fb2

View File

@@ -589,7 +589,7 @@ const StudentsPage: React.FC = () => {
width={720} width={720}
loading={drawerLoading} loading={drawerLoading}
> >
{drawerData && ( {drawerData && (<>
<Tabs items={[ <Tabs items={[
{ {
key: 'info', label: '基础信息', key: 'info', label: '基础信息',
@@ -674,6 +674,7 @@ const StudentsPage: React.FC = () => {
const token = localStorage.getItem('token'); const token = localStorage.getItem('token');
window.open(`/api/archive/${drawerData?.student?.id}/report?token=${token}`, '_blank'); window.open(`/api/archive/${drawerData?.student?.id}/report?token=${token}`, '_blank');
}}></Button> }}></Button>
</>}
</Drawer> </Drawer>
</div> </div>
); );