From ffe669d9015050128deb423901cbfc09f709aeb1 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 10 Oct 2024 17:32:49 +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 | 2 +- src/page/ShareScreenWindow/index.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 2dee41b..0f04457 100644 --- a/main.js +++ b/main.js @@ -318,7 +318,7 @@ app.on('ready', () => { transparent: true, }) child.loadURL(config.url) - childWindow[key] = child + childWindow[config.key] = child child.once('ready-to-show', () => { child.show() child.setSize(config.width, config.height) diff --git a/src/page/ShareScreenWindow/index.tsx b/src/page/ShareScreenWindow/index.tsx index 17ac999..55666e3 100644 --- a/src/page/ShareScreenWindow/index.tsx +++ b/src/page/ShareScreenWindow/index.tsx @@ -5,12 +5,11 @@ const ShareScreenWindow: React.FC = () => { useEffect(() => { }, []); - // window.electron.createChildWindow({ - // url: location.origin + `/#/shareScreenWindow`, - // width: 600, - // height: 40, - // key: 'shareScreenWindow', + // url: location.origin + `/#/shareScreenWindow`, + // width: 600, + // height: 40, + // key: 'shareScreenWindow', // }) return ( <>