mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
8c02c2cb93
commit
448b04abf8
6 changed files with 34 additions and 28 deletions
|
|
@ -240,13 +240,7 @@ export const lockScreen = (app: App) => {
|
|||
app.plugins.forEach(item => {
|
||||
item.eventBus.emit("lock-screen");
|
||||
});
|
||||
/// #if BROWSER
|
||||
fetchPost("/api/system/logoutAuth", {}, () => {
|
||||
redirectToCheckAuth();
|
||||
});
|
||||
/// #else
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "lockscreen"});
|
||||
/// #endif
|
||||
fetchPost("/api/system/logoutAuth");
|
||||
};
|
||||
|
||||
export const kernelError = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue