mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
df89ad3cbf
commit
db6932c157
6 changed files with 26 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue