瀏覽代碼

日志:登录失败原因

Michael Wang 4 年之前
父節點
當前提交
17d148ec7c
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/features/Login/Login.vue

+ 9 - 2
src/features/Login/Login.vue

@@ -704,7 +704,10 @@ export default {
             "登录失败",
             "getStudentInfoBySession失败",
           ]);
-          this.logger({ action: "登录失败" });
+          this.logger({
+            action: "登录失败",
+            detail: "getStudentInfoBySession失败",
+          });
           this.$Message.error({
             content: "获取学生信息失败,请重试!",
             duration: 15,
@@ -717,7 +720,11 @@ export default {
         }
       } else {
         window._hmt.push(["_trackEvent", "登录页面", "登录失败", data.desc]);
-        createLog({ currentPage: "登录页面", action: "登录失败" });
+        createLog({
+          currentPage: "登录页面",
+          action: "登录失败",
+          desc: data.desc,
+        });
         this.errorInfo = data.desc;
         // this.captchaObj.reset();
         this.captchaObj.destroy();