重新打开应用是否自动登录判断优化 #18

Merged
yangqiang merged 14 commits from yangjie into master 2024-10-11 14:15:18 +08:00
2 changed files with 5 additions and 6 deletions
Showing only changes of commit ffe669d901 - Show all commits

View File

@ -318,7 +318,7 @@ app.on('ready', () => {
transparent: true, transparent: true,
}) })
child.loadURL(config.url) child.loadURL(config.url)
childWindow[key] = child childWindow[config.key] = child
child.once('ready-to-show', () => { child.once('ready-to-show', () => {
child.show() child.show()
child.setSize(config.width, config.height) child.setSize(config.width, config.height)

View File

@ -5,12 +5,11 @@ const ShareScreenWindow: React.FC = () => {
useEffect(() => { useEffect(() => {
}, []); }, []);
// window.electron.createChildWindow({ // window.electron.createChildWindow({
// url: location.origin + `/#/shareScreenWindow`, // url: location.origin + `/#/shareScreenWindow`,
// width: 600, // width: 600,
// height: 40, // height: 40,
// key: 'shareScreenWindow', // key: 'shareScreenWindow',
// }) // })
return ( return (
<> <>