fix(codegen): 更新API调用方法名
- 将add方法更改为create方法以匹配API接口定义 - 确保表单数据提交逻辑一致性 - 保持成功消息提示功能不变
This commit is contained in:
@@ -363,7 +363,7 @@
|
||||
})
|
||||
.finally(() => (loading.value = false));
|
||||
} else {
|
||||
${entityName}API.add(formData)
|
||||
${entityName}API.create(formData)
|
||||
.then(() => {
|
||||
ElMessage.success("新增成功");
|
||||
handleCloseDialog();
|
||||
|
||||
Reference in New Issue
Block a user