fix: submitForm提交成功后,modal提示没有区分“修改/添加”:

Signed-off-by: dhb52 <dhb52@126.com>
This commit is contained in:
dhb52 2023-12-24 06:35:52 +00:00 committed by Gitee
parent a1f404d548
commit 0fff176088
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -436,10 +436,11 @@ const submitForm = () => {
#end
if (form.value.${pkColumn.javaField}) {
await update${BusinessName}(form.value).finally(() => buttonLoading.value = false);
proxy?.#[[$modal]]#.msgSuccess("修改成功");
} else {
await add${BusinessName}(form.value).finally(() => buttonLoading.value = false);
proxy?.#[[$modal]]#.msgSuccess("添加成功");
}
proxy?.#[[$modal]]#.msgSuccess("修改成功");
dialog.visible = false;
await getList();
}