From ff0b0672d7160be11da73b575c03b2757c570a3a Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 14 Aug 2024 17:16:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 4611f4e..0a4d045 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -530,27 +530,15 @@ const Meeting: React.FC = () => { footerListTemplate[itemIndex][rowIndex].title = '共享屏幕' break; case '静音': - footerListTemplate[itemIndex][rowIndex].title = '解除静音' - footerListTemplate[itemIndex][rowIndex].active = true - setFooterList(footerListTemplate) - postOpenMicr(false, user.uid) + await postOpenMicr(false, user.uid) break; case '解除静音': - footerListTemplate[itemIndex][rowIndex].title = '静音' - footerListTemplate[itemIndex][rowIndex].active = false - setFooterList(footerListTemplate) - postOpenMicr(true, user.uid) + await postOpenMicr(true, user.uid) break; case '关闭视频': - footerListTemplate[itemIndex][rowIndex].title = '开启视频' - footerListTemplate[itemIndex][rowIndex].active = true - setFooterList(footerListTemplate) await postOpenCamera(false, user.uid) break; case '开启视频': - footerListTemplate[itemIndex][rowIndex].title = '关闭视频' - footerListTemplate[itemIndex][rowIndex].active = false - setFooterList(footerListTemplate) await postOpenCamera(true, user.uid) break; case '设置':