This commit is contained in:
parent
89cd6ae490
commit
e5b3cd72a6
|
|
@ -8,7 +8,6 @@ import { storage } from '@/utils';
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
const fs = require('fs').promises;
|
const fs = require('fs').promises;
|
||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
let userInfo = JSON.parse(storage.getItem('user') as string)
|
|
||||||
const StupWizard = forwardRef((props: any, ref: any) => {
|
const StupWizard = forwardRef((props: any, ref: any) => {
|
||||||
useImperativeHandle(ref, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
changeModal: () => {
|
changeModal: () => {
|
||||||
|
|
@ -106,6 +105,7 @@ const VideoComponents = () => {
|
||||||
}, []);
|
}, []);
|
||||||
const getVideoDeviceList = async (): Promise<void> => {
|
const getVideoDeviceList = async (): Promise<void> => {
|
||||||
const setting = await JSON.parse(storage.getItem('setting') as string)
|
const setting = await JSON.parse(storage.getItem('setting') as string)
|
||||||
|
const userInfo = JSON.parse(storage.getItem('user') as string)
|
||||||
agora.getVideoDeviceManager().then(async (res) => {
|
agora.getVideoDeviceManager().then(async (res) => {
|
||||||
const { item, list } = res
|
const { item, list } = res
|
||||||
if ((!setting.videoDeviceId && item) || (!(list.find((item: any) => item.deviceId === setting.videoDeviceId)) && item)) {
|
if ((!setting.videoDeviceId && item) || (!(list.find((item: any) => item.deviceId === setting.videoDeviceId)) && item)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue