Commit 06e3b4cd by fukai

修改为postMessage

parent fd213781
......@@ -42,10 +42,10 @@ const Step = Steps.Step;
if(typeof data=='string')
{
data = JSON.parse(data)
let event = document.createEvent("HTMLEvents")
event.initEvent("message",true,true)
event.data = data
window.dispatchEvent(event)
if(window.parent)
window.parent.postMessage(data)
else
window.postMessage(data)
}
if(data.errorCode == '0000')
this.setState({isOK:0})
......
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