unify page

This commit is contained in:
2025-05-31 21:05:58 +02:00
parent 29a6fcb2fb
commit 03e4a5790a
7 changed files with 245 additions and 97 deletions
+19
View File
@@ -0,0 +1,19 @@
<template>
<div v-if="data">
<MainPoll :question-component="QuestionResult" :results="data" />
</div>
<div v-else>
Couldn't fetch poll results ! Please contact the website administrator
</div>
</template>
<script setup lang="ts">
import QuestionResult from '~/components/QuestionResult.vue';
const { data, error } = await useFetch<{ [question_id: string]: { [values: string]: number } }>('http://localhost:3000/results/beautifulAccessCode', {
})
if (error) {
console.log(error.value)
}
</script>