Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/6404

Vanessa2d31620eb51e
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index b6e53075e2..ad8d36f9e3 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -142,7 +142,7 @@ export const setLocalStorage = () => {
};
export const exportLocalStorage = (cb: () => void) => {
- fetchPost("/api/system/setLocalStorage", {val: JSON.stringify(localStorage)}, () => {
+ fetchPost("/api/system/setLocalStorage", {val: window.localStorage}, () => {
cb();
});
};