yangjie #45

Merged
yangqiang merged 19 commits from yangjie into master 2024-12-18 13:52:10 +08:00
1 changed files with 11 additions and 12 deletions
Showing only changes of commit 63914c1fb7 - Show all commits

View File

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