diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 17eee9a..75dd9c7 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -484,6 +484,15 @@ const Meeting: React.FC = () => { await agora.muteLocalAudioStream(true) } }) + if (userInfo.roleId !== '1') { + if (item.isRoomManager) { + footerListTemplate[0][2].title = '结束发言' + footerListTemplate[0][2].active = true + } else { + footerListTemplate[0][2].title = '申请发言' + footerListTemplate[0][2].active = false + } + } setFooterList(footerListTemplate) } if (userSearchValue) { @@ -820,13 +829,7 @@ const Meeting: React.FC = () => { sharedFilesModelRef.current.getData() break; case '申请发言': - GetApplySpeak(state.channelId).then(async (res) => { - if (res.code === 200) { - footerListTemplate[itemIndex][rowIndex].title = '结束发言' - footerListTemplate[itemIndex][rowIndex].active = true - setFooterList(footerListTemplate) - } - }) + GetApplySpeak(state.channelId) break; case '结束发言': footerListTemplate[itemIndex][rowIndex].title = '申请发言'