refactor(websocket): 将硬编码的5000毫秒改为5 * 1000以提高可读性

This commit is contained in:
超级老白兔
2025-09-03 09:54:40 +08:00
parent 0d6ac88dea
commit 2995755cda

View File

@@ -456,7 +456,7 @@ export const useWebSocketStore = createPersistStore<WebSocketState>(
// 如果连接断开,停止定时器
state._stopAliveStatusTimer();
}
}, 5000);
}, 5 * 1000);
set({ aliveStatusTimer: timer });
},