摄像头被暂用提示
This commit is contained in:
parent
d68bf9c3f6
commit
ec8ec8d9cb
|
|
@ -164,6 +164,7 @@ const App: React.FC = () => {
|
||||||
if (location.href.indexOf('/login') !== -1) {
|
if (location.href.indexOf('/login') !== -1) {
|
||||||
window.electron.onStop()
|
window.electron.onStop()
|
||||||
}
|
}
|
||||||
|
message.destroy('cameraTemporarily')
|
||||||
}, [navigate])
|
}, [navigate])
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
|
|
@ -1060,6 +1060,14 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
return bool
|
return bool
|
||||||
})
|
})
|
||||||
|
} else if (reason === 3 || reason === 4) {
|
||||||
|
message.error({
|
||||||
|
content: <div>请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道 <span style={{ color: '#606fc7', cursor: 'pointer' }} onClick={() => {
|
||||||
|
stupWizardRef.current.changeModal(1);
|
||||||
|
}}>前往设置</span></div>,
|
||||||
|
duration: 60,
|
||||||
|
key: 'cameraTemporarily'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue