From 54a5b442cde97c1bf7bcdabc0453c2a303ff4049 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 22 Jan 2025 09:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=B8=8B=E8=A7=92=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/NoticeWindow/index.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/page/Meeting/NoticeWindow/index.tsx b/src/page/Meeting/NoticeWindow/index.tsx index d1be2a7..d330e3e 100644 --- a/src/page/Meeting/NoticeWindow/index.tsx +++ b/src/page/Meeting/NoticeWindow/index.tsx @@ -68,13 +68,15 @@ const NoticeWindow: React.FC = () => { , onClose: () => { - const dom = document.getElementsByClassName('ant-notification') - if (dom.length === 0) { - window.electron.setChildWindowShow({ - key: 'noticeWindow', - bool: false - }) - } + setTimeout(() => { + const dom = document.getElementsByClassName('ant-notification') + if (dom.length === 0) { + window.electron.setChildWindowShow({ + key: 'noticeWindow', + bool: false + }) + } + }, 0); }, duration: 10, placement: 'bottomRight',