فهرست منبع

补充SLS日志

Michael Wang 5 سال پیش
والد
کامیت
e58bcb972f

+ 1 - 0
src/features/OfflineExam/OfflineExamHome.vue

@@ -44,6 +44,7 @@ export default {
   async mounted() {
     try {
       window._hmt.push(["_trackEvent", "离线考试页面", "进入列表", ""]);
+      this.logger({ page: "离线考试页面", action: "进入页面" });
       await this.fetchData();
     } catch (error) {
       this.$Message.error({

+ 1 - 0
src/features/OnlineExam/OnlineExamHome.vue

@@ -135,6 +135,7 @@ export default {
   },
   async mounted() {
     window._hmt.push(["_trackEvent", "在线考试列表页面", "进入页面"]);
+    this.logger({ page: "在线考试列表页面", action: "进入页面" });
 
     await this.getData();
   },

+ 1 - 0
src/features/OnlinePractice/OnlinePracticeHome.vue

@@ -63,6 +63,7 @@ export default {
   },
   async mounted() {
     window._hmt.push(["_trackEvent", "在线练习列表页面", "进入页面"]);
+    this.logger({ page: "在线练习列表页面", action: "进入页面" });
     if (this.$route.query.examId) {
       this.examId = this.$route.query.examId - 0;
       try {

+ 1 - 0
src/features/SiteMessage/SiteMessageHome.vue

@@ -102,6 +102,7 @@ export default {
   },
   async mounted() {
     window._hmt.push(["_trackEvent", "站内消息列表页面", "进入页面"]);
+    this.logger({ page: "站内消息列表页面", action: "进入页面" });
     await this.getList();
     if (this.$route.query.fromPage) {
       this.page = +this.$route.query.fromPage;

+ 1 - 0
src/mixins/mixins.js

@@ -131,6 +131,7 @@ Vue.mixin({
     },
     logout(cause = "") {
       console.log("退出登录");
+      this.logger({ action: "退出登录", cause });
       localStorage.removeItem("phoneVerified");
       window._hmt.push(["_trackEvent", "退出", cause]);
       const redirectUrl = sessionStorage.getItem("redirectUrl");