feat: refs #7356 update CrudModel
gitea/salix-front/pipeline/pr-test There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2025-02-24 12:54:50 +01:00
parent 7a1a5ad501
commit e0524bdecf
1 changed files with 4 additions and 1 deletions

View File

@ -184,8 +184,11 @@ async function saveChanges(data) {
if ($props.beforeSaveFn) {
changes = await $props.beforeSaveFn(changes, getChanges);
}
try {
if (changes.creates.length === 0 && changes.updates.length === 0) {
return;
}
await axios.post($props.saveUrl || $props.url + '/crud', changes);
} finally {
isLoading.value = false;