Skip to content

Commit 7b6dd30

Browse files
committed
feat: 添加total_page字段
1 parent 6885539 commit 7b6dd30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/api/cms/admin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ admin.linGet(
165165
items: groups,
166166
total: total,
167167
page: v.get('query.page'),
168-
count: v.get('query.count')
168+
count: v.get('query.count'),
169+
total_page: Math.ceil(total / parseInt(v.get('query.count')))
169170
});
170171
}
171172
);

0 commit comments

Comments
 (0)