This commit is contained in:
parent
4810f79075
commit
47a438a5b6
|
|
@ -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)
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue