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