Vanessa 2023-01-12 16:36:50 +08:00
parent aaec2300a9
commit a8a2fe8529
3 changed files with 5 additions and 6 deletions

View file

@ -792,9 +792,7 @@ 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'})
item.browserWindow.webContents.send('siyuan-lock-screen')
})
})