From fdd408abfe0d5da795ba0e21e3063fb779119046 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 29 Feb 2024 18:37:35 +0100 Subject: [PATCH] fetch article onBeforeMount --- components/content/ArticleDoi.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content/ArticleDoi.vue b/components/content/ArticleDoi.vue index bf4ae550..629899cd 100644 --- a/components/content/ArticleDoi.vue +++ b/components/content/ArticleDoi.vue @@ -23,7 +23,7 @@ const article = ref<WikiArticle | undefined>(undefined) const { mobile } = useDisplay(); const show = ref(false); -onMounted(async () => { +onBeforeMount(async () => { const { article: articleOnMounted } = await useFetchArticle(props.doi); article.value = articleOnMounted.value }) -- GitLab