From 35ff92c99ac5005bf871b985bf1507c8403621b5 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 13 Nov 2024 17:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=B0=88=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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() + } + }) + } } }) }