diff --git a/src/App.tsx b/src/App.tsx index 018c99f..b73bfcd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -164,6 +164,7 @@ const App: React.FC = () => { if (location.href.indexOf('/login') !== -1) { window.electron.onStop() } + message.destroy('cameraTemporarily') }, [navigate]) } useEffect(() => { diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 267fccb..2d0a840 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1060,6 +1060,14 @@ const Meeting: React.FC = () => { } return bool }) + } else if (reason === 3 || reason === 4) { + message.error({ + content:
请检查摄像头是否正常工作,检查摄像头是否被其他应用占用,或者尝试重新加入频道 { + stupWizardRef.current.changeModal(1); + }}>前往设置
, + duration: 60, + key: 'cameraTemporarily' + }); } } })