后台-个人设置

This commit is contained in:
2026-01-26 16:59:52 +08:00
parent c84d4f74a6
commit 535fb734ea
11 changed files with 425 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import { DownOutlined } from '@ant-design/icons';
import { DownOutlined, SettingOutlined } from '@ant-design/icons';
import { Button, Dropdown, Popconfirm, Space } from 'antd';
import { navigate } from '@/router/routerUtils';
import { useUserStore } from '@/store/UserStore';
import { GapBox } from '../GapBox';
@@ -16,7 +17,7 @@ export const HeaderUserInfo: React.FC = () => {
menu={{
items: [
{
key: 'user-info',
key: 'admin-info',
disabled: true, // 只展示,不可操作
label: (
<Space size={8} style={{ color: 'rgba(0,0,0,0.88)' }}>
@@ -26,6 +27,15 @@ export const HeaderUserInfo: React.FC = () => {
</Space>
),
},
{
type: 'divider',
},
{
key: 'profile',
icon: <SettingOutlined />,
label: '个人信息',
onClick: () => navigate('/profile'),
},
],
}}
>