Skip to content

Commit

Permalink
Prise en compte de l'état de la demande en cas de rechargement de la …
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
jvk88511334 committed Oct 8, 2024
1 parent dec2673 commit ad6cd37
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Exemplarisation/ExempSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'EXEMP')
.then(response => {
demande.value = response.data;
router.replace(`/exemplarisation/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError',err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Modification/ModifSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'MODIF')
.then(response => {
demande.value = response.data;
router.replace(`/modification/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError', err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Recouvrement/RecouvSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'RECOUV')
.then(response => {
demande.value = response.data;
router.replace(`/recouvrement/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError',err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'SUPP')
.then(response => {
demande.value = response.data;
router.replace(`/suppression/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError', err);
Expand Down

0 comments on commit ad6cd37

Please sign in to comment.