Browse Source

课程中心sandbox

11wqe1 2 weeks ago
parent
commit
00bdcb598d

+ 8 - 2
src/components/easy2/studyStudent.vue

@@ -613,7 +613,7 @@
                       style="width: 100%; height: 100%; border: none"
 											allow="camera *; microphone *;display-capture;midi;encrypted-media;"
                       :key="diffKey"
-                      v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('app.cocorobo.cn')!=-1"
+                      v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
                       :src="pptImgUrl1"
                     ></iframe>
                     <iframe
@@ -13984,7 +13984,13 @@
         <iframe
           style="width: 100%; height: 100%; border: none"
           security="restricted"
-          v-if="(fulltype == 16)"
+          v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
+          :src="fullUrl"
+        ></iframe>
+        <iframe
+          style="width: 100%; height: 100%; border: none"
+          security="restricted"
+          v-else
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
           :src="fullUrl"
         ></iframe>

+ 8 - 2
src/components/easy3/studyStudent.vue

@@ -10605,7 +10605,7 @@
         <iframe
             style="width: 100%; height: 100%; border: none"
 						allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('knowledge.cocorobo.cn')!=-1 || fullUrl.indexOf('cloud.cocorobo.cn')!=-1) || fullUrl.indexOf('app.cocorobo.cn')!=-1"
+            v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
             :src="fullUrl"
         ></iframe>
         <iframe
@@ -10623,7 +10623,13 @@
         <iframe
           style="width: 100%; height: 100%; border: none"
           security="restricted"
-          v-if="(fulltype == 16)"
+          v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
+          :src="fullUrl"
+        ></iframe>
+        <iframe
+          style="width: 100%; height: 100%; border: none"
+          security="restricted"
+          v-else
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
           :src="fullUrl"
         ></iframe>

+ 7 - 1
src/components/studyStudent.vue

@@ -10557,7 +10557,13 @@
         <iframe
           style="width: 100%; height: 100%; border: none"
           security="restricted"
-          v-if="(fulltype == 16)"
+          v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
+          :src="fullUrl"
+        ></iframe>
+        <iframe
+          style="width: 100%; height: 100%; border: none"
+          security="restricted"
+          v-else
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
           :src="fullUrl"
         ></iframe>

+ 7 - 1
src/components/studySutdentClass/studyStudent.vue

@@ -13795,7 +13795,13 @@
         <iframe
           style="width: 100%; height: 100%; border: none"
           security="restricted"
-          v-if="(fulltype == 16)"
+          v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
+          :src="fullUrl"
+        ></iframe>
+        <iframe
+          style="width: 100%; height: 100%; border: none"
+          security="restricted"
+          v-else
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
           :src="fullUrl"
         ></iframe>