From 7fcbbfce56562570fe35ac2f775fe449364e17c3 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 16 Aug 2024 17:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 18 +++++++++--------- src/utils/package/signalr.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 4485b1a..fbcdc53 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -122,7 +122,7 @@ const Meeting: React.FC = () => { const [isShareUser, setIsShareUser] = useState(null) const [currentLookUserStatus, setCurrentLookUserStatus] = useState<0 | 1 | 2 | 3 | 4>(1) let userInfo = JSON.parse(storage.getItem('user') as string) - const msgTips = '您不是管理员或主讲人,无法开启此功能!' + const msgTips = '您不是管理员或发言人,无法开启此功能!' useEffect(() => { let time = null as any; setUser(userInfo) @@ -295,7 +295,7 @@ const Meeting: React.FC = () => { case 'OperCamera': setAllUserListData('OperCamera', item) break; - // 主讲人用户信息刷新 + // 发言人用户信息刷新 case 'ManagerRefresh': if (item.user.uid === userInfo.uid) { await agora.updateChannelMediaOptions(item.user.isRoomManager) @@ -348,21 +348,21 @@ const Meeting: React.FC = () => { const changeAgoraDevice = () => { function moveAdminsAndSpeakersToFront(arr: any[]): any[] { - // 创建一个新的数组来存放管理员和主讲人 + // 创建一个新的数组来存放管理员和发言人 const adminsAndSpeakers = [] as any; // 创建一个新的数组来存放其他用户 const otherUsers = [] as any; // 遍历原始数组 arr.forEach((item: any) => { if (item.roleId === '1' || item.isRoomManager) { - // 如果是管理员或主讲人,添加到 adminsAndSpeakers 数组 + // 如果是管理员或发言人,添加到 adminsAndSpeakers 数组 adminsAndSpeakers.push(item); } else { // 否则,添加到 otherUsers 数组 otherUsers.push(item); } }); - // 将管理员和主讲人放在数组的最前面 + // 将管理员和发言人放在数组的最前面 return [...adminsAndSpeakers, ...otherUsers]; } setRoomUserList((res: any) => { @@ -998,7 +998,7 @@ const Meeting: React.FC = () => { }) } }} - >{item.isRoomManager ? '取消房间主讲人' : '设为房间主讲人'} : null} + >{item.isRoomManager ? '取消房间发言人' : '设为房间发言人'} : null} + >{item.isRoomManager ? '取消房间发言人' : '设为房间发言人'}