feat: ✨ 添加用户管理页
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
MenuFoldOutlined,
|
||||
MenuUnfoldOutlined,
|
||||
DashboardOutlined,
|
||||
UserOutlined,
|
||||
SettingOutlined,
|
||||
LogoutOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { Outlet, useNavigate, useLocation } from 'react-router-dom';
|
||||
@@ -30,7 +30,7 @@ const AdminLayout = () => {
|
||||
logout();
|
||||
message.success('登出成功');
|
||||
navigate('/admin/login');
|
||||
} catch (error) {
|
||||
} catch {
|
||||
message.error('登出失败');
|
||||
}
|
||||
};
|
||||
@@ -43,12 +43,12 @@ const AdminLayout = () => {
|
||||
},
|
||||
{
|
||||
key: 'user',
|
||||
icon: <UserOutlined />,
|
||||
label: '用户管理',
|
||||
icon: <SettingOutlined />,
|
||||
label: '系统管理',
|
||||
children: [
|
||||
{
|
||||
key: '/admin/users',
|
||||
label: '用户列表',
|
||||
label: '用户管理',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user