diff --git a/components/content/ArticleDoi.vue b/components/content/ArticleDoi.vue index bf4ae550e992a617b9582913f627615687c3f3cb..629899cd8b2f1330b51a81e748896b3413b1f20b 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 })