fix(codegen): 更新API调用方法名

- 将add方法更改为create方法以匹配API接口定义
- 确保表单数据提交逻辑一致性
- 保持成功消息提示功能不变
This commit is contained in:
theo
2025-12-11 17:34:31 +08:00
parent 289f79cdb4
commit 7340588459

View File

@@ -363,7 +363,7 @@
})
.finally(() => (loading.value = false));
} else {
${entityName}API.add(formData)
${entityName}API.create(formData)
.then(() => {
ElMessage.success("新增成功");
handleCloseDialog();