mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
c1d2259eac
commit
9d1c83ce37
7 changed files with 63 additions and 48 deletions
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue