diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 993ec24..25d4e1b 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -441,18 +441,22 @@ const Meeting: React.FC = () => { } else { message.error('当前不在会议室!') } - singInRef.current.getModal().then((res: boolean) => { - if (!res) { - singInRef.current.changeModal() - } - }) + if (!role.ID.includes(userInfo.roleId)) { + singInRef.current.getModal().then((res: boolean) => { + if (!res) { + singInRef.current.changeModal() + } + }) + } }, onCancel() { - singInRef.current.getModal().then((res: boolean) => { - if (!res) { - singInRef.current.changeModal() - } - }) + if (!role.ID.includes(userInfo.roleId)) { + singInRef.current.getModal().then((res: boolean) => { + if (!res) { + singInRef.current.changeModal() + } + }) + } } }) }