diff --git a/package.json b/package.json index 6b7b7ec..4eb4fbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Item", - "version": "3.3.0", + "version": "3.3.1-SNAPSHOT", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src/components/Structure/Navbar.vue b/src/components/Structure/Navbar.vue index cf5639a..bf76617 100644 --- a/src/components/Structure/Navbar.vue +++ b/src/components/Structure/Navbar.vue @@ -178,7 +178,13 @@ const authStore = useAuthStore() const emit = defineEmits(['close']) function navigateTo(routeName) { - router.push({ name: routeName }).catch(err => {}) + if ((routeName === 'suppression') || (routeName === "recouvrement") || (routeName === "exemplarisation") || (routeName === "modification")) { + let newRouteName = "/" + routeName + "/empty" + router.replace(newRouteName).catch(err => {}); + router.currentRoute.value.fullPath = "/suppression/empty"; + } else { + router.push({ name: routeName }).catch(err => {}) + } fixNavBarModel.value ? '' : emit('close') } diff --git a/src/views/Exemplarisation/ExempSteps.vue b/src/views/Exemplarisation/ExempSteps.vue index be99482..285a9a2 100644 --- a/src/views/Exemplarisation/ExempSteps.vue +++ b/src/views/Exemplarisation/ExempSteps.vue @@ -113,7 +113,7 @@ diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 6b50107..3e869e8 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -160,7 +160,7 @@