Переглянути джерело

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

Vanessa 2 роки тому
батько
коміт
400eaf714a
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app/src/protyle/util/compatibility.ts

+ 2 - 2
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();
     });
 };