fix(dashboard): update user fetching

This commit is contained in:
shiyu
2025-06-02 12:56:59 +08:00
parent 67168a99b6
commit a5f05623e6

View File

@@ -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);
// 更新用户总数统计