lsc hace 3 años
padre
commit
555d0da195
Se han modificado 1 ficheros con 19 adiciones y 9 borrados
  1. 19 9
      js/Desktop/DeskTop.js

+ 19 - 9
js/Desktop/DeskTop.js

@@ -1623,9 +1623,9 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
                     }
                 }).form; //创建窗体
 
-            U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
-                $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
-            })
+            // U.UF.DL.iframeLoad($("iframe", _formdiv)[0], function() {
+            //     $("iframe", _formdiv)[0].contentWindow.U.MD.O.W.load();
+            // })
             _taskbar = {
                 "id": str + _formdiv.id,
                 "style": {
@@ -1699,12 +1699,22 @@ U.MD.D.I.openApplicationJie = function(str, cid, stage, task, tool) {
     script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu2.js";
 
     if (_iframe) {
-        _iframe.onload = () => {
-            _iframe.contentWindow.document.body.appendChild(script1);
-            _iframe.contentWindow.document.body.appendChild(script2);
-            // _iframe.contentWindow.document.body.appendChild(script3);
-            _iframe.contentWindow.document.body.appendChild(script4);
-        };
+        if (str == 'doc') {
+            U.UF.DL.iframeLoad(_iframe, function () {
+                _iframe.contentWindow.U.MD.O.W.load();
+                _iframe.contentWindow.document.body.appendChild(script1);
+                _iframe.contentWindow.document.body.appendChild(script2);
+                // _iframe.contentWindow.document.body.appendChild(script3);
+                _iframe.contentWindow.document.body.appendChild(script4);
+            })
+        } else {
+            _iframe.onload = () => {
+                _iframe.contentWindow.document.body.appendChild(script1);
+                _iframe.contentWindow.document.body.appendChild(script2);
+                // _iframe.contentWindow.document.body.appendChild(script3);
+                _iframe.contentWindow.document.body.appendChild(script4);
+            };
+        }
         _jie.onclick = () => {
             var _ajs = _iframe.contentWindow.document.createElement("script");
             _ajs.type = "text/javascript";