This commit is contained in:
yj 2024-10-17 10:44:55 +08:00
parent 7020974f1a
commit beacd92df1
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
await agora.init() await agora.init()
} }
setJoinRoomSettingForm((res: any) => { setJoinRoomSettingForm((res: any) => {
res.forEach((item: any, index: number) => { res.forEach(async (item: any, index: number) => {
if (index === 0 && role.ID.includes(user.roleId)) { if (index === 0 && role.ID.includes(userInfo.roleId)) {
agora.getAudioMediaList().then(res => { await agora.getAudioMediaList().then(res => {
item.active = res.ecordingList.length ? true : false item.active = res.ecordingList.length ? true : false
}) })
} else { } else {