From 4d074cf28b7eafbd457b575751a869b260a0be6d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 14 Aug 2024 16:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StupWizard/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)