添加日志修改

master
于肖磊 2026-01-06 17:16:17 +08:00
parent cd33eb913f
commit 6fac6bfd15
2 changed files with 3 additions and 3 deletions

View File

@ -545,12 +545,12 @@
setTimeout(() => {
_this.is_socket_error = true;
_this.socket_error_content = `${_this.reconnect_count + 1}次连接失败`;
console.log(`${_this.reconnect_count + 1}次连接失败`);
console.log(`聊天${_this.reconnect_count + 1}次连接失败`);
setTimeout(() => {
//
_this.reconnect_count++;
_this.socket_connect();
console.log(`${_this.reconnect_count + 1}次连接`);
console.log(`聊天${_this.reconnect_count + 1}次连接`);
}, 1000); // 10
}, 1000); // 10
} else {

View File

@ -211,7 +211,7 @@ export default {
const _this = this;
// 延迟3秒后尝试重新连接
this.ended_timer = setTimeout(() => {
console.log('视频重连次数' + _this.retry_count);
console.log('视频' + _this.retry_count + '次连接');
// 在定时结束后尝试重新连接
if (_this.$refs.liveVideo) {
_this.$refs.liveVideo.reload_video();