Commit 32cf057f authored by yanzhongrong's avatar yanzhongrong

socket

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