Vanessa 2022-10-30 10:10:55 +08:00
parent fc08e01de2
commit 2d31620eb5

View file

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