明树Git Lab

Commit a79481e7 authored by zfp1's avatar zfp1

update

parent d7969926
......@@ -29,7 +29,7 @@ async function list(req, res, next) {
let skip = (page - 1) * pageSize;
console.log(search, "====1")
let count = await DB.CollectIET.countDocuments(search);
let data = await DB.CollectIET.find(search).skip(skip).limit(pageSize).lean().exec();;
let data = await DB.CollectIET.find(search).skip(skip).limit(pageSize).lean().exec().sort({time:-1});;
res.sendData({list: data, 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