@@ -150,6 +150,7 @@ export function useWebSocket() {
// // }
// socketHand = null;
// }
+ // getClearTimer();
// if (socketHand) {
// socketHand.close();
@@ -605,6 +605,7 @@ export function useWs() {
}
onUnmounted(() => {
+ getClearTimer();
if (socket) {
socket.close();
socket = null;