From ad6cd37f0dce468ad938e45b2a6d1ef8ee254710 Mon Sep 17 00:00:00 2001 From: Jerome Villiseck Date: Tue, 8 Oct 2024 12:57:56 +0200 Subject: [PATCH] =?UTF-8?q?Prise=20en=20compte=20de=20l'=C3=A9tat=20de=20l?= =?UTF-8?q?a=20demande=20en=20cas=20de=20rechargement=20de=20la=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Exemplarisation/ExempSteps.vue | 1 + src/views/Modification/ModifSteps.vue | 1 + src/views/Recouvrement/RecouvSteps.vue | 1 + src/views/Suppression/SuppSteps.vue | 1 + 4 files changed, 4 insertions(+) diff --git a/src/views/Exemplarisation/ExempSteps.vue b/src/views/Exemplarisation/ExempSteps.vue index 837cb2f..ffff3ad 100644 --- a/src/views/Exemplarisation/ExempSteps.vue +++ b/src/views/Exemplarisation/ExempSteps.vue @@ -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); diff --git a/src/views/Modification/ModifSteps.vue b/src/views/Modification/ModifSteps.vue index 42db8d5..e4e9290 100644 --- a/src/views/Modification/ModifSteps.vue +++ b/src/views/Modification/ModifSteps.vue @@ -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); diff --git a/src/views/Recouvrement/RecouvSteps.vue b/src/views/Recouvrement/RecouvSteps.vue index 220cc72..940cefd 100644 --- a/src/views/Recouvrement/RecouvSteps.vue +++ b/src/views/Recouvrement/RecouvSteps.vue @@ -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); diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 56116f3..ff0352b 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -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);