An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15308
Vanessa35f43e8669b7
diff --git a/app/src/util/processMessage.ts b/app/src/util/processMessage.tsindex 649d3793c2..e95e356594 100644--- a/app/src/util/processMessage.ts+++ b/app/src/util/processMessage.ts@@ -33,15 +33,22 @@ export const processMessage = (response: IWebSocketData) => {return false;}if ("reloadui" === response.cmd) {+ const reloadByMode = (mode: string) => {+ if (mode) {+ window.location.pathname = "stage/build/" + mode;+ } else {+ window.location.reload();+ }+ };if (response.data?.resetScroll) {window.siyuan.storage[Constants.LOCAL_FILEPOSITION] = {};setStorageVal(Constants.LOCAL_FILEPOSITION, window.siyuan.storage[Constants.LOCAL_FILEPOSITION], () => {/// #if MOBILE- window.location.reload();+ reloadByMode(response.data?.mode);/// #elseexportLayout({cb() {- window.location.reload();+ reloadByMode(response.data?.mode);},errorExit: false,});@@ -49,11 +56,11 @@ export const processMessage = (response: IWebSocketData) => {});} else {/// #if MOBILE- window.location.reload();+ reloadByMode(response.data?.mode);/// #elseexportLayout({cb() {- window.location.reload();+ reloadByMode(response.data?.mode);},errorExit: false,});