优化权限
This commit is contained in:
parent
84be3ad09d
commit
d254315789
|
|
@ -1123,7 +1123,7 @@ const Meeting: React.FC = () => {
|
|||
getRoomKickout(state.channelId, item.uid, item.userName)
|
||||
}}
|
||||
>移出会议</Button> : null}
|
||||
{item.uid !== user.uid ? <Button
|
||||
{item.uid !== user.uid && item.roleId !== '1' ? <Button
|
||||
type="primary"
|
||||
className='m-ant-btn'
|
||||
size={'small'}
|
||||
|
|
@ -1293,7 +1293,7 @@ const Meeting: React.FC = () => {
|
|||
{item.uid !== user.uid && user.roleId === '1' ? <div>
|
||||
<Popover placement="left" title={''} content={
|
||||
<div className='drag'>
|
||||
<Button
|
||||
{item.roleId !== '1' ? <Button
|
||||
type="primary"
|
||||
className='m-ant-btn'
|
||||
style={{ marginBottom: '10px', width: '100%' }}
|
||||
|
|
@ -1313,7 +1313,7 @@ const Meeting: React.FC = () => {
|
|||
})
|
||||
}
|
||||
}}
|
||||
>{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button>
|
||||
>{item.isRoomManager ? '取消发言人' : '设为发言人'}</Button> : null}
|
||||
<Button
|
||||
type="primary"
|
||||
className='m-ant-btn'
|
||||
|
|
@ -1400,7 +1400,7 @@ const Meeting: React.FC = () => {
|
|||
getRoomKickout(state.channelId, roomUserItem.uid, roomUserItem.userName)
|
||||
}}
|
||||
>移出会议</Button> : null}
|
||||
{roomUserItem.uid !== user.uid ? <Button
|
||||
{roomUserItem.uid !== user.uid && roomUserItem.roleId !== '1' ? <Button
|
||||
type="primary"
|
||||
className='m-ant-btn'
|
||||
size={'small'}
|
||||
|
|
|
|||
Loading…
Reference in New Issue