|
@@ -43,26 +43,38 @@ export default {
|
|
|
// console.log("blur...");
|
|
|
// dialog.showErrorBox("学生端不是置顶状态", "退出学生端!");
|
|
|
// app.exit(0);
|
|
|
- const redirectUrl = sessionStorage.getItem("redirectUrl");
|
|
|
+
|
|
|
this.logger({
|
|
|
- action: "学生端不是置顶状态--退出",
|
|
|
- });
|
|
|
- console.log(`学生端不是置顶状态--退出`);
|
|
|
- this.$Modal.error({
|
|
|
- title: "学生端不是置顶状态",
|
|
|
- content: "退出考试",
|
|
|
- onOk: () => {
|
|
|
- if (redirectUrl) {
|
|
|
- window.location = redirectUrl;
|
|
|
- } else {
|
|
|
- this.$router.push(
|
|
|
- "/login/" +
|
|
|
- localStorage.getItem("domain") +
|
|
|
- "?LogoutReason=学生端不是置顶状态--退出"
|
|
|
- );
|
|
|
- }
|
|
|
- },
|
|
|
+ page: window.location.pathname,
|
|
|
+ action: "学生端不是置顶状态",
|
|
|
});
|
|
|
+ window._hmt.push([
|
|
|
+ "_trackEvent",
|
|
|
+ window.location.pathname.replace(/\d+/g, ""),
|
|
|
+ "学生端不是置顶状态",
|
|
|
+ ]);
|
|
|
+ return;
|
|
|
+
|
|
|
+ // const redirectUrl = sessionStorage.getItem("redirectUrl");
|
|
|
+ // this.logger({
|
|
|
+ // action: "学生端不是置顶状态--退出",
|
|
|
+ // });
|
|
|
+ // console.log(`学生端不是置顶状态--退出`);
|
|
|
+ // this.$Modal.error({
|
|
|
+ // title: "学生端不是置顶状态",
|
|
|
+ // content: "退出考试",
|
|
|
+ // onOk: () => {
|
|
|
+ // if (redirectUrl) {
|
|
|
+ // window.location = redirectUrl;
|
|
|
+ // } else {
|
|
|
+ // this.$router.push(
|
|
|
+ // "/login/" +
|
|
|
+ // localStorage.getItem("domain") +
|
|
|
+ // "?LogoutReason=学生端不是置顶状态--退出"
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // });
|
|
|
};
|
|
|
mainWindow.removeListener("blur", blurHandler);
|
|
|
mainWindow.on("blur", blurHandler);
|