diff --git a/src/components/StupWizard/index.tsx b/src/components/StupWizard/index.tsx index 442006b..0dcd096 100644 --- a/src/components/StupWizard/index.tsx +++ b/src/components/StupWizard/index.tsx @@ -155,7 +155,7 @@ const VideoComponents = () => { const getVideoDeviceList = async (): Promise => { const userInfo = JSON.parse(storage.getItem('user') as string) agora.getVideoDeviceManager().then(async (res) => { - const { item, list } = res + const { list } = res setVideoDeviceManager({ list: list.map((row: any) => { return { @@ -163,7 +163,7 @@ const VideoComponents = () => { label: row.deviceName } }), - item: setting.videoDeviceId ? setting.videoDeviceId : item || null, + item: setting.videoDeviceId, }) if (setting.videoDeviceId && list.length) { await agora.setVideoDeviceManager(setting.videoDeviceId)