mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-07 08:01:47 +01:00
This commit is contained in:
parent
9333f52edd
commit
225dfbf505
4 changed files with 26 additions and 2 deletions
|
|
@ -26,5 +26,19 @@ export const onWindowsMsg = (ipcData: IWebSocketData) => {
|
|||
}
|
||||
});
|
||||
break;
|
||||
case "lockscreenByMode":
|
||||
if (window.siyuan.config.system.lockScreenMode === 1) {
|
||||
exportLayout({
|
||||
reload: false,
|
||||
onlyData: false,
|
||||
errorExit: false,
|
||||
cb() {
|
||||
fetchPost("/api/system/logoutAuth", {}, () => {
|
||||
redirectToCheckAuth();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue