mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
🔱: [client] sync upgrade with 4 commits [trident-sync]
build: publish success chore: chore:
This commit is contained in:
@@ -67,7 +67,8 @@ const mockUtil: any = {
|
||||
}
|
||||
let orderProp: any, orderAsc: any;
|
||||
if (req && req.body) {
|
||||
const { page, query, sort } = req.body;
|
||||
const { page, sort } = req.body;
|
||||
let query = req.body.query;
|
||||
if (page.limit != null) {
|
||||
limit = parseInt(page.limit);
|
||||
}
|
||||
@@ -76,7 +77,7 @@ const mockUtil: any = {
|
||||
}
|
||||
orderProp = sort.prop;
|
||||
orderAsc = sort.asc;
|
||||
|
||||
query = query || {};
|
||||
if (Object.keys(query).length > 0) {
|
||||
data = list.filter((item: any) => {
|
||||
let allFound = true; // 是否所有条件都符合
|
||||
|
||||
Reference in New Issue
Block a user