This commit is contained in:
parent
a12848ff68
commit
a0b6893f8e
|
|
@ -322,7 +322,7 @@ const VideoComponents = () => {
|
|||
<Select
|
||||
placeholder={videoDeviceManager.list.length ? '请选择设备' : '未检测到摄像头'}
|
||||
options={videoDeviceManager.list} style={{ flexGrow: 1, marginRight: '10px' }}
|
||||
value={videoDeviceManager.item} onChange={async (e) => {
|
||||
value={videoDeviceManager.item || null} onChange={async (e) => {
|
||||
setVideoDeviceManager({
|
||||
...videoDeviceManager,
|
||||
item: e
|
||||
|
|
@ -652,7 +652,7 @@ const AudioComponents = () => {
|
|||
<Select
|
||||
placeholder={audioDeviceManager.ecordingList.length ? '请选择设备' : '未检测到麦克风'}
|
||||
options={audioDeviceManager.ecordingList} style={{ flexGrow: 1 }}
|
||||
value={audioDeviceManager.ecordingItem} onChange={async (e) => {
|
||||
value={audioDeviceManager.ecordingItem || null} onChange={async (e) => {
|
||||
setting.ecordingDeviceId = e;
|
||||
storage.setItem('setting', JSON.stringify(setting))
|
||||
setAudioDeviceManager({
|
||||
|
|
@ -749,7 +749,7 @@ const AudioComponents = () => {
|
|||
<Select
|
||||
placeholder={audioDeviceManager.playBackList.length ? '请选择设备' : '未检测到麦克风'}
|
||||
options={audioDeviceManager.playBackList} style={{ flexGrow: 1 }}
|
||||
value={audioDeviceManager.playBackItem} onChange={async (e) => {
|
||||
value={audioDeviceManager.playBackItem || null} onChange={async (e) => {
|
||||
setting.playBackDeviceId = e;
|
||||
storage.setItem('setting', JSON.stringify(setting))
|
||||
setAudioDeviceManager({
|
||||
|
|
|
|||
Loading…
Reference in New Issue