|
@@ -53,7 +53,7 @@ export default {
|
|
|
|
|
|
setTimeout(() => {
|
|
|
this.toggleSnapNow();
|
|
|
- }, 5 * 1000); // 一分钟后抓拍
|
|
|
+ }, 5 * 1000); // 5秒钟后抓拍
|
|
|
|
|
|
// 仅在线上使用活体检测
|
|
|
if (
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
// console.log(res);
|
|
|
if (res.data) {
|
|
|
// 考务设置抓拍间隔
|
|
|
- setInterval(() => {
|
|
|
+ this.snapInterval = setInterval(() => {
|
|
|
this.toggleSnapNow();
|
|
|
}, res.data * 60 * 1000);
|
|
|
}
|
|
@@ -127,6 +127,7 @@ export default {
|
|
|
},
|
|
|
destroyed() {
|
|
|
clearInterval(this.submitInterval);
|
|
|
+ clearInterval(this.snapInterval);
|
|
|
},
|
|
|
// beforeRouteUpdate(to, from, next) {
|
|
|
// this.updateQuestion(next);
|