Commit 32cf057f authored by yanzhongrong's avatar yanzhongrong

socket

parent 8f189dea
...@@ -42,6 +42,7 @@ export default { ...@@ -42,6 +42,7 @@ export default {
onmessage: this.receiveMessage onmessage: this.receiveMessage
}) })
EventBus.$on('dialogAlarm', (data) => { EventBus.$on('dialogAlarm', (data) => {
// 接收消息之后 声音弹窗显示
this.tflag = data this.tflag = data
setTimeout(() => { setTimeout(() => {
this.tflag = false this.tflag = false
...@@ -54,7 +55,6 @@ export default { ...@@ -54,7 +55,6 @@ export default {
handler(newV) { handler(newV) {
if (newV) { if (newV) {
this.closeWebsocket() this.closeWebsocket()
// my_audio.play()
this.websocket = socket({ this.websocket = socket({
onmessage: this.receiveMessage onmessage: this.receiveMessage
}) })
......
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