Vanessa 2023-02-27 10:58:07 +08:00
parent ac3b54a538
commit 8713734ba9
7 changed files with 19 additions and 33 deletions

View file

@ -19,10 +19,10 @@ import {needSubscribe} from "../util/needSubscribe";
export const lockScreen = () => {
/// #if BROWSER
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = "/";
window.location.href = `/check-auth?url=${window.location.href}`;
});
/// #else
ipcRenderer.send(Constants.SIYUAN_LOCK_SCREEN);
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "lockscreen"});
/// #endif
};