This commit is contained in:
yj 2024-08-13 17:54:23 +08:00
parent 810c68bc96
commit d771aff700
1 changed files with 19 additions and 17 deletions

View File

@ -111,23 +111,25 @@ const App: React.FC = () => {
}, [])
useEffect(() => {
onOtherSignalr(async (item: any) => {
switch (item.key) {
case 'Invitation':
window.electron.joinNotification({
body: item.roomName,
name: item.InviterName,
})
joinMeetingModalRef.current.changeModal(item)
break;
case 'ForceLogout':
message.error(item.message)
await leaveChannel(true)
toSrc('/login')
break;
}
})
}, [navigate])
setTimeout(() => {
onOtherSignalr(async (item: any) => {
switch (item.key) {
case 'Invitation':
window.electron.joinNotification({
body: item.roomName,
name: item.InviterName,
})
joinMeetingModalRef.current.changeModal(item)
break;
case 'ForceLogout':
message.error(item.message)
await leaveChannel(true)
toSrc('/login')
break;
}
})
}, 3000);
}, [])
useEffect(() => {
try {