Pārlūkot izejas kodu

记录提交答案失败的详细信息

Michael Wang 6 gadi atpakaļ
vecāks
revīzija
eae9ea2b8e
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      src/features/OnlineExam/Examing/ExamingHome.vue

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

@@ -387,7 +387,14 @@ export default {
         } catch (error) {
           console.log(error);
           this.$Message.error("提交答案失败");
-          window._hmt.push(["_trackEvent", "正在考试页面", "提交答案", "失败"]);
+          window._hmt.push([
+            "_trackEvent",
+            "正在考试页面",
+            "提交答案失败",
+            error.message +
+              " |||| " +
+              (((error.response || {}).data || {}).desc || "")
+          ]);
           this.serverLog(
             "debug/S-008001",
             `提交答案失败 => 考试剩余时间:${this.remainTime / 1000}`