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

chore:
chore:
chore: editRequest 判断form.id不为空
chore:
This commit is contained in:
GitHub Actions Bot
2023-11-23 19:24:19 +00:00
parent 3393bde820
commit 282f8b4e02
109 changed files with 743 additions and 120 deletions
+5 -2
View File
@@ -2,7 +2,10 @@ import _ from "lodash-es";
function copyList(originList: any, newList: any, options: any, parentId?: any) {
for (const item of originList) {
const newItem: any = _.cloneDeep(item);
newItem.parentId = parentId;
if(parentId!= null && newItem.parentId == null){
newItem.parentId = parentId;
}
newItem.id = ++options.idGenerator;
newList.push(newItem);
if (item.children != null) {
@@ -215,7 +218,7 @@ const mockUtil: any = {
return {
code: 0,
msg: "success",
data: req.body.id
data: _.cloneDeep(req.body)
};
}
},