Vanessa 2023-01-12 15:53:57 +08:00
parent df89ad3cbf
commit db6932c157
6 changed files with 26 additions and 15 deletions

View file

@ -779,6 +779,14 @@ app.whenReady().then(() => {
})
})
ipcMain.on('siyuan-lock-screen', () => {
workspaces.forEach(item => {
const currentURL = new URL(item.browserWindow.getURL())
const server = getServer(currentURL.port)
fetch(server + '/api/system/logoutAuth', {method: 'POST'})
})
})
if (firstOpen) {
const firstOpenWindow = new BrowserWindow({
width: screen.getPrimaryDisplay().size.width / 2,