mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +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) => {
|
ipcMain.on('subWindowCloseAll', (event) => {
|
||||||
subWindow.some(item => {
|
subWindow.some(({browser}) => {
|
||||||
item.close()
|
browser && browser.close()
|
||||||
})
|
})
|
||||||
event.returnValue = "ok"
|
event.returnValue = "ok"
|
||||||
})
|
})
|
||||||
@ -266,8 +266,8 @@ ipcMain.on('subWindowCloseAll', (event) => {
|
|||||||
* 销毁所有子窗口
|
* 销毁所有子窗口
|
||||||
*/
|
*/
|
||||||
ipcMain.on('subWindowDestroyAll', (event) => {
|
ipcMain.on('subWindowDestroyAll', (event) => {
|
||||||
subWindow.some(item => {
|
subWindow.some(({browser}) => {
|
||||||
item.destroy()
|
browser && browser.destroy()
|
||||||
})
|
})
|
||||||
event.returnValue = "ok"
|
event.returnValue = "ok"
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user