diff --git a/frontend/app/pages/component/[id]/index.vue b/frontend/app/pages/component/[id]/index.vue index 39b972b..c4fa04f 100644 --- a/frontend/app/pages/component/[id]/index.vue +++ b/frontend/app/pages/component/[id]/index.vue @@ -464,6 +464,7 @@ const { getConstructeurById } = useConstructeurs() const { updateDocument } = useDocuments() const isEditMode = ref(false) +const versionRefreshKey = ref(0) const { component, @@ -512,6 +513,7 @@ const submitEdition = async () => { if (!saving.value) { await fetchComponent() isEditMode.value = false + versionRefreshKey.value++ } } diff --git a/frontend/app/pages/product/[id]/index.vue b/frontend/app/pages/product/[id]/index.vue index 51de9e1..603380b 100644 --- a/frontend/app/pages/product/[id]/index.vue +++ b/frontend/app/pages/product/[id]/index.vue @@ -366,6 +366,7 @@ const { } = useProductHistory() const isEditMode = ref(false) +const versionRefreshKey = ref(0) const constructeurLinks = ref([]) const originalConstructeurLinks = ref([]) @@ -630,6 +631,7 @@ const submitEdition = async () => { toast.showSuccess('Produit mis à jour avec succès') await loadProduct() isEditMode.value = false + versionRefreshKey.value++ } } catch (error: any) { toast.showError(humanizeError(error?.message) || 'Impossible de mettre à jour le produit')