This commit is contained in:
Vanessa 2023-01-22 12:21:20 +08:00
parent 7e753908b8
commit bfcdf3c352
5 changed files with 85 additions and 44 deletions

View file

@ -171,6 +171,9 @@ export const getLocalStorage = (cb:()=>void) => {
keepFold: false,
mergeSubdocs: false,
};
defaultStorage[Constants.LOCAL_EXPORTIMG] = {
keepFold: false,
};
defaultStorage[Constants.LOCAL_DOCINFO] = {
id: "",
action: []
@ -202,7 +205,7 @@ export const getLocalStorage = (cb:()=>void) => {
};
defaultStorage[Constants.LOCAL_ZOOM] = 1;
[Constants.LOCAL_SEARCHEKEYS, Constants.LOCAL_PDFTHEME, Constants.LOCAL_BAZAAR, Constants.LOCAL_EXPORTWORD,
[Constants.LOCAL_EXPORTIMG, Constants.LOCAL_SEARCHEKEYS, Constants.LOCAL_PDFTHEME, Constants.LOCAL_BAZAAR, Constants.LOCAL_EXPORTWORD,
Constants.LOCAL_EXPORTPDF, Constants.LOCAL_DOCINFO, Constants.LOCAL_FONTSTYLES, Constants.LOCAL_SEARCHEDATA,
Constants.LOCAL_ZOOM,].forEach((key) => {
if (typeof response.data[key] === "string") {