diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx index fd50bf4..fb67a98 100644 --- a/src/pages/Profile.tsx +++ b/src/pages/Profile.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react'; -import { Form, Input, Button, Card, message, Avatar, Descriptions, Space, Modal } from 'antd'; -import { UserOutlined, LockOutlined } from '@ant-design/icons'; +import { Form, Input, Button, Card, message, Avatar, Descriptions, Space, Modal, Row, Col } from 'antd'; +import { UserOutlined, LockOutlined, SafetyOutlined } from '@ant-design/icons'; import { authApi } from '@/services/api'; import type { User } from '@/types'; @@ -60,77 +60,108 @@ function ProfilePage() { }; return ( -
+
用户资料 } - style={{ marginBottom: '24px' }} + bordered={false} > - {user && ( - - - } size={64} /> - - {user.username} - {user.name} - {user.email || '-'} - {user.role} - - {new Date(user.createdAt).toLocaleString('zh-CN')} - - - )} + + + {user && ( + + + } size={64} /> + + {user.username} + {user.name} + {user.email || '-'} + {user.role} + + {new Date(user.createdAt).toLocaleString('zh-CN')} + + + )} + -
- - - + +
+ 基础信息 +
+ + + + - - - + + + - - - - - - -
+ + + + + + + + +
+ 安全 +
+ +
+ + + 修改密码 + + +
+
+ + +
+ + + 双因素验证 + + +
+
+ +
- - 修改密码 - - } - extra={ - - } - /> -