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

View File

@ -74,11 +74,11 @@ const Meeting: React.FC = () => {
iconActive: ImageUrl.icon27Active, iconActive: ImageUrl.icon27Active,
active: false, active: false,
}, },
// { {
// title: '设置向导', title: '设置',
// icon: ImageUrl.icon28, icon: ImageUrl.icon28,
// active: false, active: false,
// }, },
{ {
title: '结束', title: '结束',
icon: ImageUrl.icon29, icon: ImageUrl.icon29,
@ -543,8 +543,8 @@ const Meeting: React.FC = () => {
await postOpenCamera(true, user.uid) await postOpenCamera(true, user.uid)
await agora.startCameraCapture() await agora.startCameraCapture()
break; break;
case '设置向导': case '设置':
// stupWizardRef.current.changeModal() stupWizardRef.current.changeModal()
break; break;
case '邀请人员': case '邀请人员':
invitingPersonnelRef.current.changeInvitingPersonnelModal() invitingPersonnelRef.current.changeInvitingPersonnelModal()