|
@@ -196,6 +196,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
openWebsocketToStartFaceIDTest() {
|
|
|
+ this.closeWS();
|
|
|
this.ws = new WebSocket(VUE_APP_WK_SERVER_SOCKET + this.examRecordId);
|
|
|
this.ws.onopen = function() {
|
|
|
window._hmt.push([
|
|
@@ -243,7 +244,7 @@ export default {
|
|
|
this.wsReconnectCount = this.wsReconnectCount || 0;
|
|
|
this.wsReconnectCount++;
|
|
|
if (!this.haveReceivedMsg && this.wsReconnectCount < 10) {
|
|
|
- this.ws = new WebSocket(VUE_APP_WK_SERVER_SOCKET + this.examRecordId);
|
|
|
+ this.openWebsocketToStartFaceIDTest();
|
|
|
window._hmt.push([
|
|
|
"_trackEvent",
|
|
|
"活体检测弹出框",
|