Commit b56be135 authored by youjie's avatar youjie

修复通讯bug

parent 08fcc82d
......@@ -299,17 +299,18 @@
this.dialogPptistVisible = false
},
handleMessage(event,targetOrigin) {
if(this.isPostMessage) return
if(event.data=='行程数据保存成功'){
if(event.data&&!event.data.data) return
if(event.data&&event.data=='行程数据保存成功'){
if(this.isPostMessage) return
// this.dialogPptistVisible = false
this.isPostMessage = true
this.$emit('ConfigInfo')
}else if(event.data.indexOf('行程特色高')!=-1){
}else if(event.data&&event.data.indexOf('行程特色高')!=-1){
this.PostMessageText = ''
let datas = event.data.split('-')
this.myIframeHeigth = datas[1]
this.iframeLoading = false
}else if(event.data=='暂无行程数据'){
}else if(event.data&&event.data=='暂无行程数据'){
this.PostMessageText = event.data
this.iframeLoading = false
}
......
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