重新打开应用是否自动登录判断优化 #18
2
main.js
2
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)
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in New Issue