From 229bffaf45e8fc9cc778865bc10e8c7b3173959b Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 14 Aug 2024 10:11:24 +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/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 9f5d96a..f42c764 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -123,7 +123,9 @@ const App: React.FC = () => { joinMeetingModalRef.current.changeModal(item) break; case 'ForceLogout': - message.error(item.message) + if (item.message) { + message.error(item.message) + } await leaveChannel(true) toSrc('/login') break;