yangjie #22
|
|
@ -51,6 +51,9 @@ const ChatBigWindow: React.FC = () => {
|
|||
msg: '',
|
||||
}
|
||||
});
|
||||
return () => {
|
||||
channel.close();
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ const ChatSmallWindow: React.FC = () => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
channel.close();
|
||||
}
|
||||
}, []);
|
||||
const removeItemByIndex = () => {
|
||||
setChatLists((res: any) => {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ const CurrentSpeakUserWindow: React.FC = () => {
|
|||
break;
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
channel.close();
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ const NoticeWindow: React.FC = () => {
|
|||
}, 4000);
|
||||
return () => {
|
||||
clearInterval(time)
|
||||
channel.close();
|
||||
};
|
||||
}, [])
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ const ShareScreenWindow: React.FC = () => {
|
|||
});
|
||||
return () => {
|
||||
clearInterval(timeout)
|
||||
channel.close();
|
||||
};
|
||||
}, []);
|
||||
const changeCurrentSeconds = (time: number): string => {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ const UserListWindow: React.FC = () => {
|
|||
channel.postMessage({
|
||||
type: 'userListWindowGetRoomUserList'
|
||||
});
|
||||
return () => {
|
||||
channel.close();
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -431,6 +431,7 @@ const Meeting: React.FC = () => {
|
|||
window.removeEventListener('customStorageChange', handleCustomStorageChange);
|
||||
window.removeEventListener('wheel', handleWheelChange);
|
||||
clearInterval(time)
|
||||
channel.close();
|
||||
};
|
||||
}, []);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue