yangjie #51

Open
yangqiang wants to merge 34 commits from yangjie into master
1 changed files with 9 additions and 6 deletions
Showing only changes of commit 15233cf8de - Show all commits

View File

@ -727,7 +727,13 @@ const Meeting: React.FC = () => {
break;
// 扩展操作
case 'Operation':
switch (item.contentString) {
try {
const temp = JSON.parse(item.contentString)
if (temp.type === 'mode') {
message.success(`管理员已将会议室显示模式更新为${getMeetingContentBodyLeftModeText(temp.mode)}`)
setMeetingMode(temp.mode)
}
} catch (error) {
}
break;
@ -1001,9 +1007,6 @@ const Meeting: React.FC = () => {
uid: temp.uid,
enableCamera: temp.enableCamera
})
} else if (temp.type === 'mode') {
message.success(`管理员已将会议室显示模式更新为${getMeetingContentBodyLeftModeText(temp.mode)}`)
setMeetingMode(temp.mode)
}
} catch (error) {
@ -2630,8 +2633,8 @@ const Meeting: React.FC = () => {
okText: '确定',
cancelText: '取消',
async onOk() {
await window.electron.onInvoke('sendOper2User', {
uid: userInfo.uid,
await window.electron.onInvoke('sendOper', {
roomNum: state.channelId,
contentString: JSON.stringify({
mode,
type: 'mode'