feat: 引入prettier
This commit is contained in:
@@ -36,8 +36,7 @@ export const useWebSocketStore = defineStore("websocket", () => {
|
||||
|
||||
let pingIntervalId: NodeJS.Timeout | undefined;
|
||||
|
||||
if (pingIntervalId)
|
||||
clearInterval(pingIntervalId);
|
||||
if (pingIntervalId) clearInterval(pingIntervalId);
|
||||
pingIntervalId = setInterval(() => send("ping"), 30 * 1000);
|
||||
|
||||
if (websocket.value) {
|
||||
@@ -61,6 +60,6 @@ export const useWebSocketStore = defineStore("websocket", () => {
|
||||
connected,
|
||||
send,
|
||||
close,
|
||||
connect,
|
||||
connect
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user