Michael Wang 5 лет назад
Родитель
Сommit
69c233e5de
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/features/OnlineExam/Examing/FaceId.vue

+ 5 - 1
src/features/OnlineExam/Examing/FaceId.vue

@@ -147,7 +147,11 @@ export default {
             ]);
             var receivedMsg = response.data;
             shouldTimeout = false;
-            return this.faceTestEnd(receivedMsg);
+            this.faceTestEnd(receivedMsg);
+            clearTimeout(this.faceIdTimeout);
+            clearInterval(this.timeCountInterval);
+            this.$emit("closeFaceId");
+            this.closeWS();
           })
           .catch(() => {
             shouldTimeout = true;