增加判断
This commit is contained in:
parent
29b06d7903
commit
dfe7fafc13
|
|
@ -21,7 +21,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
|
|||
}
|
||||
setJoinRoomSettingForm((res: any) => {
|
||||
res.forEach((item: any, index: number) => {
|
||||
if (index === 0) {
|
||||
if (index === 0 && role.ID.includes(user.roleId)) {
|
||||
agora.getAudioMediaList().then(res => {
|
||||
item.active = res.ecordingList.length ? true : false
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue