|
|
@ -148,8 +148,10 @@ export default { |
|
|
this.$wsApi.onClose((e) => { |
|
|
this.$wsApi.onClose((e) => { |
|
|
if (e.code != 3000) { |
|
|
if (e.code != 3000) { |
|
|
// 断线重连 |
|
|
// 断线重连 |
|
|
this.reconnectWs(); |
|
|
if (!this.reconnecting) { |
|
|
this.configStore.setAppInit(false) |
|
|
this.reconnectWs(); |
|
|
|
|
|
this.configStore.setAppInit(false) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}).catch((e) => { |
|
|
}).catch((e) => { |
|
|
@ -385,8 +387,8 @@ export default { |
|
|
this.chatStore.insertMessage(msg, chatInfo); |
|
|
this.chatStore.insertMessage(msg, chatInfo); |
|
|
// 播放提示音 |
|
|
// 播放提示音 |
|
|
if (!group.isDnd && !this.chatStore.loading && |
|
|
if (!group.isDnd && !this.chatStore.loading && |
|
|
!msg.selfSend && this.$msgType.isNormal(msg.type) |
|
|
!msg.selfSend && this.$msgType.isNormal(msg.type) && |
|
|
&& msg.status != this.$enums.MESSAGE_STATUS.READED) { |
|
|
msg.status != this.$enums.MESSAGE_STATUS.READED) { |
|
|
this.playAudioTip(); |
|
|
this.playAudioTip(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|