This commit is contained in:
parent
621ef06aba
commit
15233cf8de
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue