🔱: [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
@@ -8,7 +8,9 @@ export default function (props: CreateCrudOptionsProps): CreateCrudOptionsRet {
return await api.GetList(query);
};
const editRequest = async ({ form, row }: EditReq) => {
form.id = row.id;
if (form.id == null) {
form.id = row.id;
}
return await api.UpdateObj(form);
};
const delRequest = async ({ row }: DelReq) => {