Vanessa 2026-03-02 18:18:09 +08:00
parent 8c02c2cb93
commit 448b04abf8
6 changed files with 34 additions and 28 deletions

View file

@ -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 = () => {