@@ -22,7 +22,7 @@
<script>
import QuestionBody from "./QuestionBody";
import { createNamespacedHelpers } from "vuex";
-const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
+const { mapMutations } = createNamespacedHelpers("examingHomeModule");
export default {
name: "BooleanQuestionView",
@@ -17,7 +17,7 @@
/**
* 1. 进入页面,this.stuAnswer从examQuestion.stuAnswer获得数据
@@ -19,9 +19,9 @@
-const optionName = ["A", "B", "C", "D", "E", "F"];
+const optionName = "ABCDEF".split("");
name: "MultipleQuestionView",
data() {
@@ -34,9 +34,11 @@ export default {
}
);
});
+
+ this.parseQuestion();
},
- computed: {
- question: function() {
+ methods: {
+ async parseQuestion() {
let question = {};
if (this.questionBody.includes("question-audio")) {
const audioArray = this.questionBody.match(
@@ -68,7 +70,8 @@ export default {
return question;
- }
+ },
+ computed: {}
};
</script>
@@ -80,4 +83,4 @@ export default {
.question-body audio::-webkit-media-controls-timeline-container {
display: none;
-</style>
+</style>
+const { mapState } = createNamespacedHelpers("examingHomeModule");
name: "QuestionNavView",
@@ -19,7 +19,7 @@
const optionName = ["A", "B", "C", "D", "E", "F"];
@@ -82,6 +82,7 @@ export default {
// this.$router.push("/online-exam/exam/:id/overview")
+ // eslint-disable-next-line
async faceCheckResultCallback(course, faceMatched) {
// if faceMatched