|
@@ -95,7 +95,7 @@ export const sendSocketHeart = () => {
|
|
|
|
|
|
// socket重连
|
|
// socket重连
|
|
export const reconnect = () => {
|
|
export const reconnect = () => {
|
|
- if (socketError <= 2) {
|
|
|
|
|
|
+ if (socketError <= 10) {
|
|
clearInterval(heartTime)
|
|
clearInterval(heartTime)
|
|
initWebSocket(socketUrl)
|
|
initWebSocket(socketUrl)
|
|
socketError = socketError + 1
|
|
socketError = socketError + 1
|