From 225a8c8e7149646d29f6f3fbeb4bf884a9572f9b Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 15 Oct 2024 17:22:29 +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 --- main.js | 1 + src/page/Meeting/index.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 363341d..225d2a7 100644 --- a/main.js +++ b/main.js @@ -317,6 +317,7 @@ app.on('ready', () => { childWindow[config.key] = child child.once('ready-to-show', () => { childWindow[config.key].show() + childWindow[config.key].setAlwaysOnTop(true) windowOperation(config) }) child.webContents.on('before-input-event', (event, input) => { diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index ce50e21..00768c9 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1515,7 +1515,9 @@ const Meeting: React.FC = () => { const getDesktopCapturerVideo = (): void => { agora.getDesktopCapturerVideo({ width: 300, height: 300 }, { width: 300, height: 300 }, true).then((res: any) => { res.forEach((item: any, index: number) => { - item.sourceTitle = '桌面' + (index + 1) + if (item.type === 1) { + item.sourceTitle = '桌面' + (index + 1) + } if (item.thumbImage.buffer) { item.thumbnailUrl = thumbImageBufferToBase64(item.thumbImage) }