fix: 群详情成员分页并与后端能力对齐

This commit is contained in:
Nixevol
2026-09-30 16:22:49 +08:00
parent 05ecb43766
commit 965060dc0c
8 changed files with 204 additions and 22 deletions
+2 -1
View File
@@ -607,7 +607,7 @@ export const mockApi = {
let list = groups.map(toGroupSummary);
if (query) {
const n = query.toLowerCase();
list = list.filter((g) => g.name.toLowerCase().includes(n) || g.id.toLowerCase().includes(n));
list = list.filter((g) => g.name.toLowerCase().includes(n));
}
return paginate(list, cursor, limit);
},
@@ -664,6 +664,7 @@ export const mockApi = {
name: g.name,
owner_id: g.owner_id,
created_at_ms: g.created_at_ms,
member_total: all.length,
members: page.items,
next_cursor: page.next_cursor,
};