Commit e7780554 authored by xuchaozou's avatar xuchaozou

feat: 修复iframe通信事件

parent 680f6010
Pipeline #90064 passed with stages
......@@ -23,7 +23,7 @@ class SecurityLayout extends React.Component {
if (window.share && window.share.event) {
window.share.event.on('event:logoutPackage', this.handleLogoutPackage);
window.share.event.on("iframe:postMessage", this.handleIframePostMessage)
window.share.event.once("event:isHasFrame", this.handleIsHasFrame)
window.share.event.on("event:isHasFrame", this.handleIsHasFrame)
}
}
......@@ -31,7 +31,7 @@ class SecurityLayout extends React.Component {
if (window.share && window.share.event) {
window.share.event.removeListener('event:logoutPackage', this.handleLogoutPackage);
window.share.event.removeListener("iframe:postMessage", this.handleIframePostMessage)
window.share.event.removeListener("event:isHasFrame", this.handleIframePostMessage)
window.share.event.removeListener("event:isHasFrame", this.handleIsHasFrame)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment