明树Git Lab

Commit 5360ed38 authored by zengfanpei's avatar zengfanpei

update

parent 6a8d2813
......@@ -18,7 +18,7 @@
| IPS | 虫情 |
| SMC | 土壤墒情 |
| WS | 气象 |
| ACMS | 农事综合管理系统 |
# 记录
......
......@@ -242,7 +242,7 @@ async function listRole(req, res, next) {
search.name = { $regex: req.body.name };
}
const count = await DB.Role.countDocuments(search);
const list = await DB.Role.find(search).skip(skip).limit(limit);
const list = await DB.Role.find(search).skip(skip).limit(pageSize);
res.sendData({ list, count });
} catch (error) {
next(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment