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