Vanessa 2023-03-10 10:00:03 +08:00
parent c1d2259eac
commit 9d1c83ce37
7 changed files with 63 additions and 48 deletions

View file

@ -17,6 +17,9 @@ import {getWorkspaceName} from "../util/noRelyPCFunction";
import {needSubscribe} from "../util/needSubscribe";
export const lockScreen = () => {
if (window.siyuan.config.readonly) {
return
}
/// #if BROWSER
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = `/check-auth?url=${window.location.href}`;