estandarizado el manejo de errores
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 15s

This commit is contained in:
2025-05-30 11:57:19 -06:00
parent 1eccd8d424
commit 4066217862
5 changed files with 89 additions and 71 deletions

View File

@@ -191,8 +191,7 @@ const handleSubmit = async () => {
router.push({ name: 'asistencias-index' });
} catch (error) {
console.error('Error saving asistencia:', error);
const errorMsg = error.response?.data?.message || error.message || 'Ocurrió un error.';
alert(`Error al guardar la asistencia: ${errorMsg}`);
alert(`Error al guardar la asistencia: ${error}`);
} finally {
isSubmitting.value = false;
}