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