mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
fix: 部分客户端登录页面报错的问题
This commit is contained in:
parent
1939d42d09
commit
08c46fd66e
8
electron/electron.js
vendored
8
electron/electron.js
vendored
@ -256,8 +256,8 @@ ipcMain.on('windowDestroy', (event) => {
|
||||
* 关闭所有子窗口
|
||||
*/
|
||||
ipcMain.on('subWindowCloseAll', (event) => {
|
||||
subWindow.some(item => {
|
||||
item.close()
|
||||
subWindow.some(({browser}) => {
|
||||
browser && browser.close()
|
||||
})
|
||||
event.returnValue = "ok"
|
||||
})
|
||||
@ -266,8 +266,8 @@ ipcMain.on('subWindowCloseAll', (event) => {
|
||||
* 销毁所有子窗口
|
||||
*/
|
||||
ipcMain.on('subWindowDestroyAll', (event) => {
|
||||
subWindow.some(item => {
|
||||
item.destroy()
|
||||
subWindow.some(({browser}) => {
|
||||
browser && browser.destroy()
|
||||
})
|
||||
event.returnValue = "ok"
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user