lsc 6 gün önce
ebeveyn
işleme
ce388b3165
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)