This commit is contained in:
yj 2024-07-26 16:55:30 +08:00
parent 89cd6ae490
commit e5b3cd72a6
1 changed files with 1 additions and 1 deletions

View File

@ -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<void> => {
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)) {