22301021 | 313d1b2 | 2025-06-09 01:13:46 +0800 | [diff] [blame^] | 1 | import { Layout } from 'antd'; |
2 | import { Outlet } from 'react-router'; | ||||
3 | |||||
4 | const { Content } = Layout; | ||||
5 | |||||
6 | function UserLayout() { | ||||
7 | return ( | ||||
8 | |||||
9 | <Content style={{ margin: '24px 16px 0' }}> | ||||
10 | <div style={{ padding: 24, minHeight: 360 }}> | ||||
11 | <Outlet /> {/* 这里会渲染子路由对应的组件 */} | ||||
12 | </div> | ||||
13 | </Content> | ||||
14 | |||||
15 | ); | ||||
16 | } | ||||
17 | |||||
18 | export default UserLayout; |