修改进入会议状态

This commit is contained in:
yj 2024-12-16 14:27:13 +08:00
parent d0387662a6
commit 63914c1fb7
1 changed files with 11 additions and 12 deletions

View File

@ -20,8 +20,8 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
if (location.hash.indexOf('/meeting') === -1) {
await agora.init()
}
setJoinRoomSettingForm((res: any) => {
res.forEach(async (item: any, index: number) => {
const list = [...joinRoomSettingForm]
list.forEach(async (item: any, index: number) => {
if (index === 0 && role.ID.includes(userInfo.roleId)) {
await agora.getAudioMediaList().then(res => {
item.active = res.ecordingList.length ? true : false
@ -30,8 +30,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
item.active = false
}
});
return res
})
setJoinRoomSettingForm(list)
setRoomNumber(roomNum)
getDeviceList()
}