From 88c19a327daed4c3a4d12c1d1d58dec5b5598bd0 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 27 Sep 2024 16:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 27c8ee6..2e66fb9 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1193,11 +1193,13 @@ const Meeting: React.FC = () => { } catch (error) { } await agora.leaveChannel() - if (user.isAnonymous) { - storage.setItem('userLogin', false) - } else { - navigate('/home/index') - } + setTimeout(() => { + if (user.isAnonymous) { + storage.setItem('userLogin', false) + } else { + navigate('/home/index') + } + }, 0) } // 分享屏幕 const clickSharedScreen = async (): Promise => {