Skip to content
Snippets Groups Projects
Commit fdd408ab authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

fetch article onBeforeMount

parent f77dd5cd
No related branches found
No related tags found
1 merge request!224Resolve "Rework references"
Pipeline #125016 waiting for manual action with stages
in 8 minutes and 27 seconds
...@@ -23,7 +23,7 @@ const article = ref<WikiArticle | undefined>(undefined) ...@@ -23,7 +23,7 @@ const article = ref<WikiArticle | undefined>(undefined)
const { mobile } = useDisplay(); const { mobile } = useDisplay();
const show = ref(false); const show = ref(false);
onMounted(async () => { onBeforeMount(async () => {
const { article: articleOnMounted } = await useFetchArticle(props.doi); const { article: articleOnMounted } = await useFetchArticle(props.doi);
article.value = articleOnMounted.value article.value = articleOnMounted.value
}) })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment