会议监控未打开不加入房间

This commit is contained in:
yj 2024-09-10 13:59:34 +08:00
parent 96d17e21a0
commit 7875e37bd1
1 changed files with 5 additions and 3 deletions

View File

@ -652,9 +652,6 @@ const Meeting: React.FC = () => {
token: state.token,
tokenA: state.tokenA,
})
if (userInfo.roleId === '1') {
await agora.allJoinChannelEx(true)
}
}
// 状态更新
const changeAgoraDevice = () => {
@ -1047,6 +1044,11 @@ const Meeting: React.FC = () => {
}
break;
case '会议监控':
if (!statusList.userVideo) {
await agora.allJoinChannelEx(true)
} else {
await agora.allLeaveChannelEx()
}
setStatusList({
userVideo: statusList.userVideo ? false : true,
userChatList: false,