This commit is contained in:
Vanessa 2023-09-04 10:06:15 +08:00
parent 9333f52edd
commit 225dfbf505
4 changed files with 26 additions and 2 deletions

View file

@ -26,5 +26,19 @@ export const onWindowsMsg = (ipcData: IWebSocketData) => {
}
});
break;
case "lockscreenByMode":
if (window.siyuan.config.system.lockScreenMode === 1) {
exportLayout({
reload: false,
onlyData: false,
errorExit: false,
cb() {
fetchPost("/api/system/logoutAuth", {}, () => {
redirectToCheckAuth();
});
}
});
}
break;
}
};