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 ? '取消房间发言人' : '设为房间发言人'}