mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 12:08:07 +01:00
This commit is contained in:
parent
06f24ae44b
commit
cd8a89e5da
7 changed files with 368 additions and 184 deletions
|
|
@ -251,6 +251,9 @@ export const getLocalStorage = (cb: () => void) => {
|
|||
note: "1f5c3",
|
||||
folder: "1f4d1"
|
||||
};
|
||||
defaultStorage[Constants.LOCAL_EMOJIS] = {
|
||||
currentTab: "emoji"
|
||||
};
|
||||
defaultStorage[Constants.LOCAL_FONTSTYLES] = [];
|
||||
defaultStorage[Constants.LOCAL_FILESPATHS] = []; // filesPath[]
|
||||
defaultStorage[Constants.LOCAL_SEARCHDATA] = {
|
||||
|
|
@ -288,7 +291,7 @@ export const getLocalStorage = (cb: () => void) => {
|
|||
Constants.LOCAL_PLUGINTOPUNPIN, Constants.LOCAL_SEARCHASSET, Constants.LOCAL_FLASHCARD,
|
||||
Constants.LOCAL_DIALOGPOSITION, Constants.LOCAL_SEARCHUNREF, Constants.LOCAL_HISTORY,
|
||||
Constants.LOCAL_OUTLINE, Constants.LOCAL_FILEPOSITION, Constants.LOCAL_FILESPATHS, Constants.LOCAL_IMAGES,
|
||||
Constants.LOCAL_PLUGIN_DOCKS].forEach((key) => {
|
||||
Constants.LOCAL_PLUGIN_DOCKS, Constants.LOCAL_EMOJIS].forEach((key) => {
|
||||
if (typeof response.data[key] === "string") {
|
||||
try {
|
||||
const parseData = JSON.parse(response.data[key]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue