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

Vanessa400eaf714a11
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 27a726e8b9..f699761222 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -134,7 +134,7 @@ export const hotKey2Electron = (key: string) => {
};
export const setLocalStorage = () => {
- fetchPost("/api/system/getLocalStorage", undefined, (response) => {
+ fetchPost("/api/storage/getLocalStorage", undefined, (response) => {
if (response.data) {
Object.keys(response.data).forEach(item => {
window.localStorage.setItem(item, response.data[item]);
@@ -146,7 +146,7 @@ export const setLocalStorage = () => {
};
export const exportLocalStorage = (cb: () => void) => {
- fetchPost("/api/system/setLocalStorage", {val: window.localStorage}, () => {
+ fetchPost("/api/storage/setLocalStorage", {val: window.localStorage}, () => {
cb();
});
};