mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
ed3a6fcb9a
commit
3233cb9f54
2 changed files with 4 additions and 4 deletions
|
|
@ -53,8 +53,8 @@ export const initToolbarMore = () => {
|
||||||
accelerator: window.siyuan.config.keymap.general.lockScreen.custom,
|
accelerator: window.siyuan.config.keymap.general.lockScreen.custom,
|
||||||
label: window.siyuan.languages.lockScreen,
|
label: window.siyuan.languages.lockScreen,
|
||||||
click: () => {
|
click: () => {
|
||||||
fetchPost("/api/system/logoutAuth", {}, () => {
|
|
||||||
exportLayout(false, () => {
|
exportLayout(false, () => {
|
||||||
|
fetchPost("/api/system/logoutAuth", {}, () => {
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -247,8 +247,8 @@ export const globalShortcut = () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (matchHotKey(window.siyuan.config.keymap.general.lockScreen.custom, event)) {
|
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 = "/";
|
window.location.href = "/";
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue