feat: 优化用户和文件页面的数据处理,使用useMemo提升性能

This commit is contained in:
ryan
2026-03-11 15:50:32 +08:00
parent 4f8970ff5c
commit 747549bab9
4 changed files with 4 additions and 3 deletions
@@ -193,7 +193,7 @@ export function UsersPage() {
});
const activeQuery = searchKeyword.length > 0 ? searchQuery : usersQuery;
const users = activeQuery.data ?? [];
const users = useMemo(() => activeQuery.data ?? [], [activeQuery.data]);
const summary = useMemo(() => {
return [