Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/5149

Vanessa3233cb9f54fc
diff --git a/app/src/menus/toolbar.ts b/app/src/menus/toolbar.ts
index fb8791b7e8..8aea1ed502 100644
--- a/app/src/menus/toolbar.ts
+++ b/app/src/menus/toolbar.ts
@@ -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 = "/";
});
});
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 0dc79b66fb..239cc291e7 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -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 = "/";
});
});