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

View file

@ -14,9 +14,7 @@ import {getWorkspaceName} from "../menus/workspace";
export const lockScreen = () => {
/// #if BROWSER
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = "/";
});
fetchPost("/api/system/logoutAuth", {});
/// #else
ipcRenderer.send(Constants.SIYUAN_LOCK_SCREEN);
/// #endif