From 47a438a5b6dc630329427241e39966bb2d54887a Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 12 Aug 2024 16:47:45 +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/components/StupWizard/index.tsx | 8 ++++++-- src/page/Meeting/index.tsx | 14 +++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/StupWizard/index.tsx b/src/components/StupWizard/index.tsx index da5ad89..49f1406 100644 --- a/src/components/StupWizard/index.tsx +++ b/src/components/StupWizard/index.tsx @@ -11,7 +11,9 @@ const { exec } = require('child_process'); const StupWizard = forwardRef((props: any, ref: any) => { useImperativeHandle(ref, () => ({ changeModal: () => { - agora.init() + if (location.hash.indexOf('/meeting') === -1) { + agora.init() + } setIsStupWizard(true) } })) @@ -80,7 +82,9 @@ const StupWizard = forwardRef((props: any, ref: any) => { cursor: 'pointer' }} onClick={() => { - agora.release() + if (location.hash.indexOf('/meeting') === -1) { + agora.release() + } setIsStupWizard(false) }} /> diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index e073e3c..70e3376 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -74,11 +74,11 @@ const Meeting: React.FC = () => { iconActive: ImageUrl.icon27Active, active: false, }, - // { - // title: '设置向导', - // icon: ImageUrl.icon28, - // active: false, - // }, + { + title: '设置', + icon: ImageUrl.icon28, + active: false, + }, { title: '结束', icon: ImageUrl.icon29, @@ -543,8 +543,8 @@ const Meeting: React.FC = () => { await postOpenCamera(true, user.uid) await agora.startCameraCapture() break; - case '设置向导': - // stupWizardRef.current.changeModal() + case '设置': + stupWizardRef.current.changeModal() break; case '邀请人员': invitingPersonnelRef.current.changeInvitingPersonnelModal()