From a5f05623e6b409281a94e841609b096fe19eabd2 Mon Sep 17 00:00:00 2001 From: shiyu Date: Mon, 2 Jun 2025 12:56:59 +0800 Subject: [PATCH] fix(dashboard): update user fetching --- Web/src/pages/admin/dashboard/Index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Web/src/pages/admin/dashboard/Index.tsx b/Web/src/pages/admin/dashboard/Index.tsx index e8b3fee..d42c816 100644 --- a/Web/src/pages/admin/dashboard/Index.tsx +++ b/Web/src/pages/admin/dashboard/Index.tsx @@ -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); // 更新用户总数统计