This commit is contained in:
yj 2024-08-20 15:33:47 +08:00
parent 6b2304c853
commit 6598666db0
2 changed files with 6 additions and 4 deletions

View File

@ -350,7 +350,7 @@ const AudioComponents = () => {
}) })
}} disabled={!audioDeviceManager.ecordingItem} /> }} disabled={!audioDeviceManager.ecordingItem} />
</div> </div>
<div> {/* <div>
<Checkbox onChange={async (e) => { <Checkbox onChange={async (e) => {
setting.autoEcordingVolume = e.target.checked; setting.autoEcordingVolume = e.target.checked;
storage.setItem('setting', JSON.stringify(setting)) storage.setItem('setting', JSON.stringify(setting))
@ -359,7 +359,7 @@ const AudioComponents = () => {
autoEcordingVolume: e.target.checked autoEcordingVolume: e.target.checked
}) })
}} checked={audioDeviceManager.autoEcordingVolume}></Checkbox> }} checked={audioDeviceManager.autoEcordingVolume}></Checkbox>
</div> </div> */}
</div> </div>
<div> <div>
<div className={styles.audioComponentsSelect}> <div className={styles.audioComponentsSelect}>
@ -442,6 +442,7 @@ const RecordingComponents = () => {
}, []) }, [])
const handleCustomStorageChange = (e: any): void => { const handleCustomStorageChange = (e: any): void => {
if (e.key === 'setting') { if (e.key === 'setting') {
const setting = JSON.parse(storage.getItem('setting') as string)
setFilePath(setting.recordingFilesPath) setFilePath(setting.recordingFilesPath)
} }
}; };
@ -514,6 +515,7 @@ const FileComponents = () => {
}, []) }, [])
const handleCustomStorageChange = (e: any): void => { const handleCustomStorageChange = (e: any): void => {
if (e.key === 'setting') { if (e.key === 'setting') {
const setting = JSON.parse(storage.getItem('setting') as string)
setFilePath(setting.shareFilesPath) setFilePath(setting.shareFilesPath)
} }
}; };

View File

@ -879,8 +879,8 @@ const Meeting: React.FC = () => {
return return
} }
if (enableCamera) { if (enableCamera) {
const enableMicrLenght = roomUserList.filter((item: any) => item.enableCamera).length const enableCameraLenght = roomUserList.filter((item: any) => item.enableCamera).length
if (enableMicrLenght >= 20) { if (enableCameraLenght >= 20) {
return message.error('房间内最多20个开启摄像头') return message.error('房间内最多20个开启摄像头')
} }
} }