如果要取消监考,只要将exampane中的monitor方法中的具体内容注释掉。
如果输入出现问题,可以先注释掉exampane中的focusauto。
2021/5/6
在beforExam页面加入了新的判断,只有当后端传来确定的回复时(传到后端的含人脸照片已有200张),此时才可进入下一页面,mock测试时,可以刷新本页面到没监考的状态,之后继续进入下一页面。
2021/5/7
修改了焦点监控的实现方式
将基本全部监考内容移到了monitor.vue中
调用monitor.vue的方法:
import monitor.vue
import blurListen.ts
在mounted中加入:
initMonitor() {
if (this.examInfo.antiCheating) {
blurListen.cheatNum = 3;
blurListen.anticheating = this.examInfo.antiCheating;
}
}