From e5b3cd72a619aac047920eab1047233d7e5fbef0 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 26 Jul 2024 16:55:30 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StupWizard/index.tsx b/src/components/StupWizard/index.tsx index dceefc5..c216f4d 100644 --- a/src/components/StupWizard/index.tsx +++ b/src/components/StupWizard/index.tsx @@ -8,7 +8,6 @@ import { storage } from '@/utils'; const os = require('os') const fs = require('fs').promises; const { exec } = require('child_process'); -let userInfo = JSON.parse(storage.getItem('user') as string) const StupWizard = forwardRef((props: any, ref: any) => { useImperativeHandle(ref, () => ({ changeModal: () => { @@ -106,6 +105,7 @@ const VideoComponents = () => { }, []); const getVideoDeviceList = async (): Promise => { const setting = await JSON.parse(storage.getItem('setting') as string) + const userInfo = JSON.parse(storage.getItem('user') as string) agora.getVideoDeviceManager().then(async (res) => { const { item, list } = res if ((!setting.videoDeviceId && item) || (!(list.find((item: any) => item.deviceId === setting.videoDeviceId)) && item)) {