zdg #175
|
@ -275,11 +275,13 @@ const eventHandles = (type, win) => {
|
|||
|
||||
// 监听窗口的激活事件
|
||||
win.on('focus', async () => {
|
||||
console.log('激活窗口')
|
||||
toolState.isPdfWin=true
|
||||
await sleep(20) // 延时
|
||||
toolState.showBoardAll=false //恢复默认值
|
||||
await sleep(50) // 延时
|
||||
|
||||
// await sleep(50) // 延时
|
||||
// 穿透开启
|
||||
if (toolState.isToolWin) ipcRenderer.invoke('tool-sphere:set:ignore', true)
|
||||
});
|
||||
const on = {
|
||||
onClosed: () => {
|
||||
|
|
Loading…
Reference in New Issue