refactor(CURD): ♻️ 优化和修改使用示例

This commit is contained in:
cshaptx4869
2024-08-13 14:47:09 +08:00
parent 24c1fb26a0
commit 0964c71b2e
6 changed files with 55 additions and 60 deletions

View File

@@ -149,7 +149,7 @@ prepareFuncs.forEach((func) => func());
// 获取表单数据
function getFormData(key?: string) {
return key === undefined ? formData : formData[key] ?? undefined;
return key === undefined ? formData : (formData[key] ?? undefined);
}
// 设置表单值