后台-个人设置
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
],
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user