Vanessa 2022-06-11 10:56:58 +08:00
parent ed3a6fcb9a
commit 3233cb9f54
2 changed files with 4 additions and 4 deletions

View file

@ -53,8 +53,8 @@ export const initToolbarMore = () => {
accelerator: window.siyuan.config.keymap.general.lockScreen.custom,
label: window.siyuan.languages.lockScreen,
click: () => {
fetchPost("/api/system/logoutAuth", {}, () => {
exportLayout(false, () => {
exportLayout(false, () => {
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = "/";
});
});

View file

@ -247,8 +247,8 @@ export const globalShortcut = () => {
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.lockScreen.custom, event)) {
fetchPost("/api/system/logoutAuth", {}, () => {
exportLayout(false, () => {
exportLayout(false, () => {
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = "/";
});
});