浏览代码

记录考试过程中切屏

Michael Wang 4 年之前
父节点
当前提交
d07dc038b3
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/App.vue

+ 5 - 0
src/App.vue

@@ -53,6 +53,11 @@ export default {
             window.location.pathname.replace(/\d+/g, ""),
             "学生端不是置顶状态",
           ]);
+          if (this.$route.name === "OnlineExamingHome") {
+            this.$http.post("/api/ecs_oe_student/examControl/switchScreen", {
+              examRecordDataId: this.$route.params.examRecordDataId,
+            });
+          }
           return;
 
           // const redirectUrl = sessionStorage.getItem("redirectUrl");