浏览代码

补充日志

Michael Wang 5 年之前
父节点
当前提交
b860cb7461
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 3 1
      src/features/OnlineExam/Examing/ExamingHome.vue
  2. 2 1
      src/features/OnlineExam/Examing/RemainTime.vue

+ 3 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -156,6 +156,7 @@ export default {
       this.examQuestion();
     },
     shouldSubmitPaper() {
+      this.logger({ action: "时间到自动交卷" });
       this.realSubmitPaper();
     },
     questionAnswerFileUrl(value) {
@@ -788,6 +789,7 @@ export default {
       }
     },
     async submitPaper() {
+      this.logger({ action: "学生点击交卷" });
       try {
         // 交卷前强制提交所有答案
         const ret = await this.answerAllQuestions(true);
@@ -870,7 +872,7 @@ export default {
       }
 
       if (this.$route.name !== "OnlineExamingHome") {
-        // 非考试页,不交卷
+        // 非考试页,不交卷
         this.$Spin.hide();
         return;
       }

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

@@ -81,7 +81,8 @@ export default {
           if (this.remainTime === null) {
             // 仅当剩余考试时间没有被初始化才使用服务器时间。否则使用本机时间。
             this.remainTime = res.data;
-            console.log("初始化剩余时间");
+            console.log("初始化剩余时间:", res.data);
+            this.logger({ action: "初始化剩余时间:", response: res.data });
           }
           this.heartbeatErrorNum = 0;
         } else {