fix: 群详情成员分页并与后端能力对齐
This commit is contained in:
+2
-1
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user