mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-06 23:06:46 +02:00
adding quiz titles
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user