Browse Source

日常开发

linxuxiang 5 months ago
parent
commit
98de3f4fb7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/train/run.vue

+ 3 - 0
src/views/train/run.vue

@@ -276,6 +276,7 @@ const getMessage = (e: any) => {
  * 开始识别
 */
 const getOpenOneTestAndStartFace = async () => {
+  showTestAgain.value = false;
   if (examState.value > 3) {
     await closeOneTest();
   }
@@ -473,6 +474,7 @@ const getAgain = async () => {
   await startFace();
   await stopFace();
   getFaceConfirmOnly(student);
+  showTestAgain.value = false;
   loading?.close();
   let loadingTime = setTimeout(() => {
     loading?.close();
@@ -489,6 +491,7 @@ const getConfirmEnd = async () => {
   getClearTimer();//清除计时器
   speckCancel()//停止播报;
   let loading = ElLoading.service({ text: '请稍等...', background: 'rgba(0, 0, 0, 0.8)', customClass: `sports ${parameter.value.project}` });
+  showTestAgain.value = false;
   //测试中
   if (examState.value == 42) {
     await finishOneTest();