This commit is contained in:
yj 2024-08-12 16:47:45 +08:00
parent 4810f79075
commit 47a438a5b6
2 changed files with 13 additions and 9 deletions

View File

@ -11,7 +11,9 @@ const { exec } = require('child_process');
const StupWizard = forwardRef((props: any, ref: any) => {
useImperativeHandle(ref, () => ({
changeModal: () => {
if (location.hash.indexOf('/meeting') === -1) {
agora.init()
}
setIsStupWizard(true)
}
}))
@ -80,7 +82,9 @@ const StupWizard = forwardRef((props: any, ref: any) => {
cursor: 'pointer'
}}
onClick={() => {
if (location.hash.indexOf('/meeting') === -1) {
agora.release()
}
setIsStupWizard(false)
}}
/>

View File

@ -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()