lsc il y a 6 jours
Parent
commit
ce388b3165
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/views/Student/index.vue

@@ -777,7 +777,7 @@ const processIframeLinks = async () => {
                     })
                     
                     // 尝试获取contentWindow
-                    if (tempIframe.contentWindow) {
+                    if (tempIframe.contentWindow && tempIframe.contentWindow.document) {
                       console.log(`iframe ${iframeSrc} 可以获取contentWindow,使用直接加载方式`)
                       // 移除临时iframe
                       document.body.removeChild(tempIframe)