|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div v-for="q in questions" :key="q.id">
|
|
|
|
|
|
|
|
|
|
<div v-if="route == q.id">
|
|
|
|
|
<h2>{{ q.title }}</h2>
|
|
|
|
|
<hr />
|
|
|
|
@ -38,12 +37,13 @@ export default {
|
|
|
|
|
complete: false,
|
|
|
|
|
error: false,
|
|
|
|
|
route: "",
|
|
|
|
|
locale: "",
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
questions() {
|
|
|
|
|
return this.$t("quizzes");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
i18n: { messages },
|
|
|
|
@ -65,6 +65,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.route = this.$route.params.id;
|
|
|
|
|
this.locale = this.$route.query.loc;
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|