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) => {
|
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)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue