Commit ae6e2da9 authored by zhouzihao's avatar zhouzihao

dev-日志列表倒序

parent 6f74a11b
......@@ -126,7 +126,8 @@ var pagedDbByJson = (json, table, items, key, page = 1, pageSize = 10, orderby =
$offset: (page - 1) * pageSize,
}
if (!_.isEmpty(orderby)) {
extra['$orderBy'] = orderby;
extra['$orderBy'] = {};
extra['$orderBy'][orderby] = false;
}
return listDbByJson(json, table, items, extra).then((data) => {
resovle({
......
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