diff --git a/src/components/MenuDownloadFile.vue b/src/components/MenuDownloadFile.vue index 3c85167..84194cb 100644 --- a/src/components/MenuDownloadFile.vue +++ b/src/components/MenuDownloadFile.vue @@ -81,6 +81,7 @@ const props = defineProps({ type: Object } }) +const emits = defineEmits(['onError']); const etatsDemande = ref([]); @@ -105,6 +106,9 @@ onMounted(() => { .then(response => { etatsDemande.value = response.data; }) + .catch( err => { + emits('onError', err); + }) }) function downloadFile(filePrefix, extension) { @@ -118,5 +122,8 @@ function downloadFile(filePrefix, extension) { link.click(); link.remove(); }) + .catch( err => { + emits('onError', err); + }) } diff --git a/src/views/Exemplarisation/ExempTable.vue b/src/views/Exemplarisation/ExempTable.vue index 3151d7a..85ccb04 100644 --- a/src/views/Exemplarisation/ExempTable.vue +++ b/src/views/Exemplarisation/ExempTable.vue @@ -109,7 +109,7 @@