fix: wrap Drawer content in fragment
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user