|
@@ -790,7 +790,7 @@ export default {
|
|
|
}, 1000);
|
|
|
openWS({ examRecordDataId: this.$store.state.user.id });
|
|
|
if (!getQRCode(1, "AUDIO", { testEnv: true })) {
|
|
|
- setTimeout(() => {
|
|
|
+ this.getQRCodeTimeout = setTimeout(() => {
|
|
|
getQRCode(1, "AUDIO", { testEnv: true });
|
|
|
}, 3000);
|
|
|
}
|
|
@@ -824,6 +824,7 @@ export default {
|
|
|
beforeDestroy() {
|
|
|
clearInterval(this.getNowInterval);
|
|
|
clearTimeout(this.checkClockRateTimeout);
|
|
|
+ clearTimeout(this.getQRCodeTimeout);
|
|
|
if (this.$refs.video.srcObject) {
|
|
|
this.$refs.video.srcObject.getTracks().forEach(function(track) {
|
|
|
track.stop();
|