重新打开应用是否自动登录判断优化 #18
2
main.js
2
main.js
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ const ShareScreenWindow: React.FC = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// window.electron.createChildWindow({
|
// window.electron.createChildWindow({
|
||||||
// url: location.origin + `/#/shareScreenWindow`,
|
// url: location.origin + `/#/shareScreenWindow`,
|
||||||
// width: 600,
|
// width: 600,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue