@@ -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({
@@ -135,6 +135,7 @@ export default {
},
window._hmt.push(["_trackEvent", "在线考试列表页面", "进入页面"]);
+ this.logger({ page: "在线考试列表页面", action: "进入页面" });
await this.getData();
@@ -63,6 +63,7 @@ export default {
window._hmt.push(["_trackEvent", "在线练习列表页面", "进入页面"]);
+ this.logger({ page: "在线练习列表页面", action: "进入页面" });
if (this.$route.query.examId) {
this.examId = this.$route.query.examId - 0;
@@ -102,6 +102,7 @@ export default {
window._hmt.push(["_trackEvent", "站内消息列表页面", "进入页面"]);
+ this.logger({ page: "站内消息列表页面", action: "进入页面" });
await this.getList();
if (this.$route.query.fromPage) {
this.page = +this.$route.query.fromPage;
@@ -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");