From 634d02d28a93ac8ee812e14bea19b373686e5cb6 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 18 Oct 2024 15:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=91=E8=A8=80=E4=BA=BA?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index d6bc6cb..53277b1 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -657,10 +657,12 @@ const Meeting: React.FC = () => { height: 150, key: 'noticeWindow', }) - channel.postMessage({ - type: 'noticeItem', - noticeItem: item - }); + setTimeout(() => { + channel.postMessage({ + type: 'noticeItem', + noticeItem: item + }); + }, 1000) } else { api.open({ message: '', @@ -1537,8 +1539,8 @@ const Meeting: React.FC = () => { }) window.electron.createChildWindow({ url: location.origin + `/#/noticeWindow`, - width: 1, - height: 1, + width: 388, + height: 150, key: 'noticeWindow', }) setKeyOpenChildWindow('shareScreenWindow', true)