增加判断

This commit is contained in:
yj 2024-10-17 09:11:51 +08:00
parent 29b06d7903
commit dfe7fafc13
1 changed files with 1 additions and 1 deletions

View File

@ -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
})