mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 19:41:03 +08:00
fix(dashboard): update user fetching
This commit is contained in:
@@ -49,7 +49,10 @@ const AdminDashboard: React.FC = () => {
|
||||
// 获取最近用户数据
|
||||
const fetchRecentUsers = async () => {
|
||||
try {
|
||||
const response = await getUsers(1, 5); // 获取最近5个用户
|
||||
const response = await getUsers({
|
||||
page: 1,
|
||||
pageSize: 5
|
||||
});
|
||||
if (response.success && response.data) {
|
||||
setRecentUsers(response.data);
|
||||
// 更新用户总数统计
|
||||
|
||||
Reference in New Issue
Block a user