11wqe1 2 maanden geleden
bovenliggende
commit
8034150c32

+ 14 - 7
src/components/easy2/studyStudent.vue

@@ -26027,13 +26027,20 @@ export default {
         this.updateToolDetail(this.toolDetailIndex);
       }
     });
-    //if (this.screenType == 2) {
-    //  window.topU.postMessage({ allScreen: 4 }, "*");
-    //} else if (this.screenType == 3) {
-    //  window.topU.postMessage({ allScreen: 5 }, "*");
-    //} else if (this.screenType == 1) {
-    //  window.topU.postMessage({ allScreen: 6 }, "*");
-    //}
+    
+    try {
+      if (this.screenType == 2) {
+        window.topU.postMessage({ allScreen: 4 }, "*");
+      } else if (this.screenType == 3) {
+        window.topU.postMessage({ allScreen: 5 }, "*");
+      } else if (this.screenType == 1) {
+        window.topU.postMessage({ allScreen: 6 }, "*");
+      }
+    } catch (error) {
+      console.log(error)
+    }
+
+
     this.setOperationTime();
     this.selectEva();
     this.getCourseDetail();

+ 10 - 6
src/components/easy3/studyStudent.vue

@@ -21382,12 +21382,16 @@ export default {
         this.updateToolDetail(this.toolDetailIndex);
       }
     });
-    if (this.screenType == 2) {
-      window.topU.postMessage({ allScreen: 4 }, "*");
-    } else if (this.screenType == 3) {
-      window.topU.postMessage({ allScreen: 5 }, "*");
-    } else if (this.screenType == 1) {
-      window.topU.postMessage({ allScreen: 6 }, "*");
+    try {
+      if (this.screenType == 2) {
+        window.topU.postMessage({ allScreen: 4 }, "*");
+      } else if (this.screenType == 3) {
+        window.topU.postMessage({ allScreen: 5 }, "*");
+      } else if (this.screenType == 1) {
+        window.topU.postMessage({ allScreen: 6 }, "*");
+      }
+    } catch (error) {
+      console.log(error)
     }
     this.setOperationTime();
     this.selectEva();

+ 6 - 6
src/components/studyStudent.vue

@@ -21416,12 +21416,12 @@ export default {
     }, 1000);
     try{
       if (this.screenType == 2) {
-      window.topU.postMessage({ allScreen: 4 }, "*");
-    } else if (this.screenType == 3) {
-      window.topU.postMessage({ allScreen: 5 }, "*");
-    } else if (this.screenType == 1) {
-      window.topU.postMessage({ allScreen: 6 }, "*");
-    }
+        window.topU.postMessage({ allScreen: 4 }, "*");
+      } else if (this.screenType == 3) {
+        window.topU.postMessage({ allScreen: 5 }, "*");
+      } else if (this.screenType == 1) {
+        window.topU.postMessage({ allScreen: 6 }, "*");
+      }
     }catch(e){
       console.log(e)
     }

+ 10 - 6
src/components/studySutdentClass/studyStudent.vue

@@ -25368,12 +25368,16 @@ export default {
         this.updateToolDetail(this.toolDetailIndex);
       }
     });
-    if (this.screenType == 2) {
-      window.topU.postMessage({ allScreen: 4 }, "*");
-    } else if (this.screenType == 3) {
-      window.topU.postMessage({ allScreen: 5 }, "*");
-    } else if (this.screenType == 1) {
-      window.topU.postMessage({ allScreen: 6 }, "*");
+    try {
+      if (this.screenType == 2) {
+        window.topU.postMessage({ allScreen: 4 }, "*");
+      } else if (this.screenType == 3) {
+        window.topU.postMessage({ allScreen: 5 }, "*");
+      } else if (this.screenType == 1) {
+        window.topU.postMessage({ allScreen: 6 }, "*");
+      }
+    } catch (error) {
+      console.log(error)
     }
     this.setOperationTime();
     this.selectEva();