From 7e909c9afea5526716957fbecd860a8d64c8e160 Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Wed, 26 Jun 2024 10:37:39 +0200 Subject: [PATCH] fix route + fix service --- src/service/DemandesService.js | 3 +-- src/views/RecouvSteps.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/service/DemandesService.js b/src/service/DemandesService.js index c08c929..f3c5577 100644 --- a/src/service/DemandesService.js +++ b/src/service/DemandesService.js @@ -144,8 +144,7 @@ export class DemandesService { }}; const data = new FormData(); data.append('file',file); - data.append('numDemande', id); - return this.client.post(`uploadDemande/${typeDemande}`,data,config); + return this.client.post(`uploadDemande/${typeDemande}/${id}`,data,config); } getDemande(id, typeDemande){ diff --git a/src/views/RecouvSteps.vue b/src/views/RecouvSteps.vue index 0d14cdc..5557c18 100644 --- a/src/views/RecouvSteps.vue +++ b/src/views/RecouvSteps.vue @@ -71,7 +71,7 @@ - OK + OK