From a94d3fa1e3a39f2ae95e3c11cf3691413085c7f0 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 22 Aug 2024 14:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 = '申请发言'