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: fix https://github.com/siyuan-note/siyuan/issues/6404
Vanessa277a2b24a1a3
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex ad8d36f9e3..27a726e8b9 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -135,9 +135,13 @@ export const hotKey2Electron = (key: string) => {export const setLocalStorage = () => {fetchPost("/api/system/getLocalStorage", undefined, (response) => {- Object.keys(response.data).forEach(item => {- window.localStorage.setItem(item, response.data[item]);- });+ if (response.data) {+ Object.keys(response.data).forEach(item => {+ window.localStorage.setItem(item, response.data[item]);+ });+ } else {+ localStorage.clear();+ }});};