zdg #175

Merged
zhengdegang merged 5 commits from zdg into main 2024-09-05 01:31:13 +08:00
1 changed files with 11 additions and 1 deletions
Showing only changes of commit e740cb0c7e - Show all commits

View File

@ -31,7 +31,8 @@ export const localStore = store.localStore
// 暴露Store存储对象
export const Store = store
// 延时
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
/**
* 获取静态资源开发和生产环境
* @param {*} url
@ -271,6 +272,15 @@ const eventHandles = (type, win) => {
winPdf=null
win&&win.destroy()
})
// 监听窗口的激活事件
win.on('focus', async () => {
toolState.isPdfWin=true
await sleep(20) // 延时
toolState.showBoardAll=false //恢复默认值
await sleep(50) // 延时
});
const on = {
onClosed: () => {
Remote.ipcMain.removeHandler('open-PDF:minimize')