zhangjie 2 年之前
父節點
當前提交
1dc4bb59d7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/features/invigilation/RealtimeMonitoring/RealtimeMonitoring.vue

+ 4 - 0
src/features/invigilation/RealtimeMonitoring/RealtimeMonitoring.vue

@@ -399,6 +399,7 @@ export default {
       exams: [],
       subjects: [],
       pageType: "0",
+      cachePaperType: "",
       dataList: [],
       examRooms: [],
       videoSourceStatusParams: {
@@ -669,6 +670,7 @@ export default {
   beforeRouteEnter(to, from, next) {
     next((vm) => {
       if (["WarningDetail", "VideoCommunication"].includes(from.name)) {
+        vm.pageType = vm.cachePaperType;
         if (vm.curExamBatch.isExaming) {
           vm.loopRunning = true;
           vm.timerUpdatePage();
@@ -677,6 +679,8 @@ export default {
     });
   },
   beforeRouteLeave(to, from, next) {
+    this.cachePaperType = this.pageType;
+    this.pageType = "0";
     this.loopRunning = false;
     this.clearLoopSetTs();
     delete window.inviligateWarning;