优化描述

This commit is contained in:
yj 2025-02-21 14:57:56 +08:00
parent aa76736cf4
commit 1a98b6e7d4
2 changed files with 19 additions and 14 deletions

View File

@ -34,6 +34,9 @@ const StupWizard = forwardRef((_props: any, ref: any) => {
} }
} }
storage.setItem('setting', JSON.stringify(setting)) storage.setItem('setting', JSON.stringify(setting))
},
getStupWizardModal: () => {
return isStupWizard
} }
})) }))
const [list, setList] = useState([ const [list, setList] = useState([

View File

@ -1409,26 +1409,28 @@ const Meeting: React.FC = () => {
}) })
} else if (reason === 3 || reason === 4) { } else if (reason === 3 || reason === 4) {
message.error({ message.error({
content: <div><span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => { content: <div><span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => {
stupWizardRef.current.changeModal(1); stupWizardRef.current.changeModal(1);
}}></span></div>, }}></span></div>,
duration: 60, duration: 15,
key: 'cameraTemporarily' key: 'cameraTemporarily'
}); });
} else if (_state === 3) { } else if (_state === 3) {
if (!stupWizardRef.current.getStupWizardModal()) {
await PostOpenCamera({ await PostOpenCamera({
roomNum: state.channelId, roomNum: state.channelId,
uid: userInfo.uid, uid: userInfo.uid,
enableCamera: false enableCamera: false
}) })
message.error({ message.error({
content: <div><span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => { content: <div><span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => {
stupWizardRef.current.changeModal(1); stupWizardRef.current.changeModal(1);
}}></span></div>, }}></span></div>,
duration: 60, duration: 15,
key: 'cameraTemporarily' key: 'cameraTemporarily'
}); });
} }
}
}, },
onTokenPrivilegeWillExpire: async (connection: RtcConnection, _token: string) => { onTokenPrivilegeWillExpire: async (connection: RtcConnection, _token: string) => {
await GetRoomRtcToken(connection.channelId || '').then(res => { await GetRoomRtcToken(connection.channelId || '').then(res => {