zhangjie 2 năm trước cách đây
mục cha
commit
1dc4bb59d7

+ 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;