liming 4 天之前
父節點
當前提交
fdde3af455
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/stores/modules/webSocketStore.js

+ 1 - 1
src/stores/modules/webSocketStore.js

@@ -21,7 +21,7 @@ export const useWebSocketStore = defineStore("webSocketStore", {
     peer: null, // peer实例
     lockConnection: false, // 锁定连接
     reconnectAttempts: 0, // 重连次数
-    maxReconnectAttempts: 5, // 最大重连次数
+    maxReconnectAttempts: 10, // 最大重连次数
     reconnectInterval: 3000, // 重连间隔
     messages: [], // 消息列表
     toUserInfo: {},