Browse Source

fix多次交卷

Michael Wang 6 years ago
parent
commit
5ce786fc67
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/features/OnlineExam/Examing/RemainTime.vue

+ 2 - 2
src/features/OnlineExam/Examing/RemainTime.vue

@@ -21,7 +21,7 @@ export default {
       this.getRemainTimeFromServer();
     }, 60 * 1000);
     this.remainTimeInterval = setInterval(() => {
-      if (this.remainTime - 1000 > 0) {
+      if (this.remainTime > 0) {
         this.remainTime = this.remainTime - 1000;
       }
     }, 1000);
@@ -71,7 +71,7 @@ export default {
   },
   watch: {
     remainTime(val) {
-      if (val !== null && val < 0) {
+      if (val !== null && val === 0) {
         this.setShouldSubmitPaper();
       }
     }