mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
This commit is contained in:
parent
f781d2d183
commit
62a7a36d3c
5 changed files with 8 additions and 4 deletions
|
|
@ -130,10 +130,13 @@ export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRoot
|
|||
/// #endif
|
||||
};
|
||||
|
||||
export const lockScreen = () => {
|
||||
export const lockScreen = (app: App) => {
|
||||
if (window.siyuan.config.readonly) {
|
||||
return;
|
||||
}
|
||||
app.plugins.forEach(item => {
|
||||
item.eventBus.emit("lock-screen");
|
||||
});
|
||||
/// #if BROWSER
|
||||
fetchPost("/api/system/logoutAuth", {}, () => {
|
||||
redirectToCheckAuth();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue