yangjie #22
|
|
@ -20,9 +20,9 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
|
|||
await agora.init()
|
||||
}
|
||||
setJoinRoomSettingForm((res: any) => {
|
||||
res.forEach((item: any, index: number) => {
|
||||
if (index === 0 && role.ID.includes(user.roleId)) {
|
||||
agora.getAudioMediaList().then(res => {
|
||||
res.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
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue