|
@@ -126,7 +126,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (faceEnable.data.IS_FACE_ENABLE) {
|
|
|
+ if (
|
|
|
+ faceEnable.data.IS_FACE_ENABLE &&
|
|
|
+ JSON.parse(faceEnable.data.IS_FACE_ENABLE)
|
|
|
+ ) {
|
|
|
this.faceEnable = true;
|
|
|
|
|
|
// setTimeout(() => {
|
|
@@ -311,8 +314,8 @@ export default {
|
|
|
this.$route.params.examId +
|
|
|
`/PRACTICE_TYPE`
|
|
|
)).data;
|
|
|
- this.practiceType = practiceType.SNAPSHOT_INTERVAL; // IN_PRACTICE NO_ANSWER
|
|
|
- exam.practiceType = practiceType.SNAPSHOT_INTERVAL;
|
|
|
+ this.practiceType = practiceType.PRACTICE_TYPE; // IN_PRACTICE NO_ANSWER
|
|
|
+ exam.practiceType = practiceType.PRACTICE_TYPE;
|
|
|
}
|
|
|
|
|
|
try {
|
|
@@ -321,7 +324,9 @@ export default {
|
|
|
this.$route.params.examId +
|
|
|
`/FREEZE_TIME`
|
|
|
);
|
|
|
- exam.freezeTime = freezeTimeData.data.FREEZE_TIME;
|
|
|
+ exam.freezeTime =
|
|
|
+ freezeTimeData.data.FREEZE_TIME &&
|
|
|
+ JSON.parse(freezeTimeData.data.FREEZE_TIME);
|
|
|
} catch (error) {
|
|
|
console.log("获取考试冻结时间失败--忽略");
|
|
|
}
|