lsc 2 年之前
父節點
當前提交
2c73521c63
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      js/Desktop/DeskTop.js

+ 5 - 2
js/Desktop/DeskTop.js

@@ -3729,15 +3729,18 @@ U.MD.D.I.openApplicationJie = function (str, cid, stage, task, tool) {
                 U.MD.D.I.getContent(cid, stage, task, tool, _userid, '2', _iframe)
             })
         } else if (str == 'whiteboard') {
-            let onloadListener = _iframe.onload
-            if (onloadListener) {
+            let onloadListener = _iframe.onload = () => {
                 _iframe.contentWindow.document.body.appendChild(script1);
                 _iframe.contentWindow.document.body.appendChild(script2);
                 _iframe.contentWindow.document.body.appendChild(script4);
+                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
+            };
+            if (onloadListener) {
                 // iframe 已经加载完成  
                 U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
             } else {
                 // iframe 还没有加载完成  
+                U.MD.D.I.getContent(cid, stage, task, tool, _userid, '3', _iframe)
             }
 
         } else {