|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div v-for="q in questions" :key="q.id">
|
|
|
|
|
|
|
|
|
|
<div v-if="route == q.id">
|
|
|
|
|
<h2>{{q.title}}</h2>
|
|
|
|
|
<hr/>
|
|
|
|
|
<h3 v-if="complete" class="message">{{ $t("complete") }}</h3>
|
|
|
|
|
<div v-else>
|
|
|
|
|
<h3 v-if="error" class="error">{{ $t("error") }}</h3>
|
|
|
|
@ -61,8 +64,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
//console.log(this.$root.$i18n.locale,this.$i18n.locale);
|
|
|
|
|
//this.questions = this.$i18n.messages + "." + this.$i18n.locale;
|
|
|
|
|
this.route = this.$route.params.id;
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|