Forráskód Böngészése

新活检:动作完成后,不考虑超时

Michael Wang 5 éve
szülő
commit
421076b053

+ 3 - 2
src/features/OnlineExam/Examing/FaceMotion/FaceMotion.vue

@@ -51,7 +51,7 @@
         style="z-index: 3"
       >
         <div class="total-text" data-intro="请在规定的时间内完成。">
-          {{ instructions.total }}
+          {{ instructions.total >= 0 ? instructions.total : 0 }}
         </div>
       </div>
       <div v-if="shouldShowSections" class="seperators above-video">
@@ -286,7 +286,8 @@ export default {
       }
     },
     "instructions.total"(total) {
-      if (total <= 0) {
+      if (!this.instructionsFinished && total <= 0) {
+        // 如果已完成,则不考虑超时
         console.log(this.corFinalResult);
         this.corFinalResult.timeout = true;
         this.corFinalResult.result = false;