|
@@ -37,9 +37,7 @@
|
|
|
<div class="topic" v-if="flag === 'tow'">
|
|
|
<div class="conBox">
|
|
|
<p class="topicTxt">
|
|
|
- {{ topicInd + 1 }}.{{ topic[topicInd].title }}---{{
|
|
|
- topic[topicInd].correct
|
|
|
- }}
|
|
|
+ {{ topicInd + 1 }}.{{ topic[topicInd].title }}
|
|
|
</p>
|
|
|
<!-- 答对或答错之后的页面颜色变化 -->
|
|
|
<ul class="topic_con" v-if="caseErr">
|
|
@@ -134,7 +132,7 @@
|
|
|
|
|
|
<script>
|
|
|
//引入题目
|
|
|
-import { questions } from "./data.js";
|
|
|
+import { questions,questionsEn } from "./data.js";
|
|
|
export default {
|
|
|
name: "issue",
|
|
|
components: {},
|
|
@@ -210,9 +208,15 @@ export default {
|
|
|
return Math.random() - 0.5;
|
|
|
});
|
|
|
arr.length = 20; //改写长度
|
|
|
- arr.forEach((v) => {
|
|
|
- this.topic.push(questions[v]);
|
|
|
- });
|
|
|
+ if(this.Mylangue){
|
|
|
+ arr.forEach((v) => {
|
|
|
+ this.topic.push(questions[v]);
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ arr.forEach((v) => {
|
|
|
+ this.topic.push(questionsEn[v]);
|
|
|
+ });
|
|
|
+ }
|
|
|
// console.log(999, this.topic); //控制台会输出20个不同的数
|
|
|
},
|
|
|
},
|