优化描述
This commit is contained in:
parent
aa76736cf4
commit
1a98b6e7d4
|
|
@ -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([
|
||||||
|
|
|
||||||
|
|
@ -1409,25 +1409,27 @@ 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) {
|
||||||
await PostOpenCamera({
|
if (!stupWizardRef.current.getStupWizardModal()) {
|
||||||
roomNum: state.channelId,
|
await PostOpenCamera({
|
||||||
uid: userInfo.uid,
|
roomNum: state.channelId,
|
||||||
enableCamera: false
|
uid: userInfo.uid,
|
||||||
})
|
enableCamera: false
|
||||||
message.error({
|
})
|
||||||
content: <div>请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道,<span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => {
|
message.error({
|
||||||
stupWizardRef.current.changeModal(1);
|
content: <div>检查摄像头是否正常、未被占用,或尝试重新加入频道。<span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => {
|
||||||
}}>前往修改摄像头</span></div>,
|
stupWizardRef.current.changeModal(1);
|
||||||
duration: 60,
|
}}>前往修改摄像头</span></div>,
|
||||||
key: 'cameraTemporarily'
|
duration: 15,
|
||||||
});
|
key: 'cameraTemporarily'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onTokenPrivilegeWillExpire: async (connection: RtcConnection, _token: string) => {
|
onTokenPrivilegeWillExpire: async (connection: RtcConnection, _token: string) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue