feat: ✨ 添加用户管理页
This commit is contained in:
@@ -5,6 +5,7 @@ import AdminAuthRoute from '../components/AdminAuthRoute';
|
||||
import PlayerAuthRoute from '../components/PlayerAuthRoute';
|
||||
import AdminLogin from '../pages/admin/AdminLogin';
|
||||
import AdminDashboard from '../pages/admin/AdminDashboard';
|
||||
import AdminUsers from '../pages/admin/AdminUsers';
|
||||
import PlayerLogin from '../pages/player/PlayerLogin';
|
||||
import PlayerDashboard from '../pages/player/PlayerDashboard';
|
||||
|
||||
@@ -30,6 +31,10 @@ const router = createBrowserRouter([
|
||||
path: 'dashboard',
|
||||
element: <AdminDashboard />,
|
||||
},
|
||||
{
|
||||
path: 'users',
|
||||
element: <AdminUsers />,
|
||||
},
|
||||
{
|
||||
index: true,
|
||||
element: <Navigate to="/admin/dashboard" replace />,
|
||||
|
||||
Reference in New Issue
Block a user