Commit 06e3b4cd by fukai

修改为postMessage

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