yangjie #22

Merged
yangqiang merged 99 commits from yangjie into master 2024-10-22 16:11:46 +08:00
7 changed files with 15 additions and 0 deletions
Showing only changes of commit 70dc2321a0 - Show all commits

View File

@ -51,6 +51,9 @@ const ChatBigWindow: React.FC = () => {
msg: '',
}
});
return () => {
channel.close();
}
}, []);
return (

View File

@ -27,6 +27,9 @@ const ChatSmallWindow: React.FC = () => {
break;
}
}
return () => {
channel.close();
}
}, []);
const removeItemByIndex = () => {
setChatLists((res: any) => {

View File

@ -16,6 +16,9 @@ const CurrentSpeakUserWindow: React.FC = () => {
break;
}
}
return () => {
channel.close();
}
}, []);

View File

@ -88,6 +88,7 @@ const NoticeWindow: React.FC = () => {
}, 4000);
return () => {
clearInterval(time)
channel.close();
};
}, [])
return (

View File

@ -90,6 +90,7 @@ const ShareScreenWindow: React.FC = () => {
});
return () => {
clearInterval(timeout)
channel.close();
};
}, []);
const changeCurrentSeconds = (time: number): string => {

View File

@ -33,6 +33,9 @@ const UserListWindow: React.FC = () => {
channel.postMessage({
type: 'userListWindowGetRoomUserList'
});
return () => {
channel.close();
}
}, []);
return (
<>

View File

@ -431,6 +431,7 @@ const Meeting: React.FC = () => {
window.removeEventListener('customStorageChange', handleCustomStorageChange);
window.removeEventListener('wheel', handleWheelChange);
clearInterval(time)
channel.close();
};
}, []);