aceda2b9 by zhen

fix:第二次编辑产品失败

1 parent 15233c3c
......@@ -47,9 +47,9 @@ export default {
fullscreen=1
`,
orderInfo: {
appUserName: '123',
appUserName: '刘臻',
appUserPhone: '16621043587',
orderId: '123213',
orderId: '9527',
webUserName: 'lz'
}
}
......@@ -60,7 +60,7 @@ export default {
methods: {
open() {
this.isStart = true
this.target = `${this.baseUrl}/#/srtc-iframe`
this.target = `${this.baseUrl}/#/srtc-iframe?path="https://localhost:8081/"`
this.$nextTick().then(() => {
this.$refs.srtcIframe.onload = () => {
this.sendMessage()
......@@ -94,18 +94,20 @@ export default {
if (e.origin !== this.baseUrl) {
return
}
const { type, data } = e
// switch (type) {
// case 'userJoin':
// this.popMessage(data)
// break
// case 'appHangUp':
// this.popMessage(data)
// break
// case 'webHangUp':
// this.popMessage(data)
// break
// }
const {
data: { data, type }
} = e
switch (type) {
case 'appHangUp':
this.isStart = false
break
case 'cancelCallCB':
this.isStart = false
break
case 'webHangUp':
this.isStart = false
break
}
this.popMessage(`${type}---${data}`)
},
popMessage(data) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!