This commit is contained in:
yj 2024-08-22 14:30:25 +08:00
parent 441eb92271
commit a94d3fa1e3
1 changed files with 10 additions and 7 deletions

View File

@ -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 = '申请发言'