Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 66x | import { Button, Result, Space } from 'antd'; import React, { ReactElement } from 'react'; import { useNavigate } from 'react-router-dom'; const EmptyPage = (): ReactElement => { const navigate = useNavigate(); return ( <Result status="404" title={'警告'} subTitle={"未连接 MQTT 物联网端口,无法获取生产实况"} extra={ <Space> <Button type="primary" onClick={() => navigate("/")}>主页</Button> </Space> } /> ); }; export default EmptyPage; |