yangjie #22
|
|
@ -21,7 +21,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
|
||||||
}
|
}
|
||||||
setJoinRoomSettingForm((res: any) => {
|
setJoinRoomSettingForm((res: any) => {
|
||||||
res.forEach((item: any, index: number) => {
|
res.forEach((item: any, index: number) => {
|
||||||
if (index === 0) {
|
if (index === 0 && role.ID.includes(user.roleId)) {
|
||||||
agora.getAudioMediaList().then(res => {
|
agora.getAudioMediaList().then(res => {
|
||||||
item.active = res.ecordingList.length ? true : false
|
item.active = res.ecordingList.length ? true : false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue