This commit is contained in:
yj 2024-09-27 16:41:42 +08:00
parent 932d8e8285
commit 88c19a327d
1 changed files with 7 additions and 5 deletions

View File

@ -1193,11 +1193,13 @@ const Meeting: React.FC = () => {
} catch (error) { } catch (error) {
} }
await agora.leaveChannel() await agora.leaveChannel()
if (user.isAnonymous) { setTimeout(() => {
storage.setItem('userLogin', false) if (user.isAnonymous) {
} else { storage.setItem('userLogin', false)
navigate('/home/index') } else {
} navigate('/home/index')
}
}, 0)
} }
// 分享屏幕 // 分享屏幕
const clickSharedScreen = async (): Promise<void> => { const clickSharedScreen = async (): Promise<void> => {