|
@@ -73,6 +73,8 @@ export default {
|
|
this.$refs.video.srcObject.getTracks().forEach(function(track) {
|
|
this.$refs.video.srcObject.getTracks().forEach(function(track) {
|
|
track.stop();
|
|
track.stop();
|
|
});
|
|
});
|
|
|
|
+ clearTimeout(this.retrySnapTimeout);
|
|
|
|
+ clearTimeout(this.showSnapResultTimeout);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(["toggleSnapNow", "decreaseSnapCount"]),
|
|
...mapMutations(["toggleSnapNow", "decreaseSnapCount"]),
|
|
@@ -164,8 +166,9 @@ export default {
|
|
"定时抓拍流程失败",
|
|
"定时抓拍流程失败",
|
|
(this.lastSnapTime ? "(非初次抓拍)" : "") + "将再次抓拍",
|
|
(this.lastSnapTime ? "(非初次抓拍)" : "") + "将再次抓拍",
|
|
]);
|
|
]);
|
|
- this.lastSnapTime = null;
|
|
|
|
- this.toggleSnapNow();
|
|
|
|
|
|
+ this.retrySnapTimeout = setTimeout(() => {
|
|
|
|
+ this.toggleSnapNow();
|
|
|
|
+ }, 60 * 1000);
|
|
} finally {
|
|
} finally {
|
|
this.videoStartPlay();
|
|
this.videoStartPlay();
|
|
this.decreaseSnapCount();
|
|
this.decreaseSnapCount();
|
|
@@ -444,7 +447,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- setTimeout(
|
|
|
|
|
|
+ this.showSnapResultTimeout = setTimeout(
|
|
this.showSnapResult.bind(this, fileName, examRecordDataId),
|
|
this.showSnapResult.bind(this, fileName, examRecordDataId),
|
|
30 * 1000
|
|
30 * 1000
|
|
);
|
|
);
|