refactor(websocket): 将硬编码的5000毫秒改为5 * 1000以提高可读性
This commit is contained in:
@@ -456,7 +456,7 @@ export const useWebSocketStore = createPersistStore<WebSocketState>(
|
||||
// 如果连接断开,停止定时器
|
||||
state._stopAliveStatusTimer();
|
||||
}
|
||||
}, 5000);
|
||||
}, 5 * 1000);
|
||||
|
||||
set({ aliveStatusTimer: timer });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user