xzw il y a 1 an
Parent
commit
f2d427677a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/sdk/cover/index.js

+ 1 - 1
src/sdk/cover/index.js

@@ -58,7 +58,7 @@ export const enter = (dom, isLocal) => {
                 console.error('createdIframe', child.winIndex, child.location.href)
                 viewer.setDisplay(false ) 
                 
-                child.beforeDestroy = function(){ 
+                child.beforeDestroy = function(){ //注:在前端仍会找不到beforeDestroy,可能contentWindow变更??所以手动调用setDisplay
                     console.warn('beforeDestroy', child.winIndex)
                     
                     child.viewer && child.viewer.setDisplay(false)