🔱: [client] sync upgrade with 4 commits [trident-sync]

build: publish success
chore:
chore:
This commit is contained in:
GitHub Actions Bot
2023-08-05 19:24:03 +00:00
parent d5eb4a1900
commit b1ac396bf1
3 changed files with 22 additions and 7 deletions
+3 -2
View File
@@ -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; // 是否所有条件都符合