Vanessa 2023-01-01 14:10:43 +08:00
parent 2f58714b79
commit 3adb7d9ad0

View File

@ -221,7 +221,10 @@ const setDefaultStorage = (response: IWebSocketData) => {
};
export const exportLocalStorage = (cb?: () => void) => {
fetchPost("/api/storage/setLocalStorage", {val: window.siyuan.storage}, () => {
fetchPost("/api/storage/setLocalStorage", {
app: Constants.SIYUAN_APPID,
val: window.siyuan.storage,
}, () => {
if (cb) {
cb();
}