From aab48e9c8a37f786a1e1c2cd22b82acacdd86d26 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 27 Dec 2022 09:45:03 +0800 Subject: [PATCH] :rotating_light: --- app/src/protyle/breadcrumb/index.ts | 2 +- app/src/search/util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index e6f3498f8..1af6b3fb1 100644 --- a/app/src/protyle/breadcrumb/index.ts +++ b/app/src/protyle/breadcrumb/index.ts @@ -389,7 +389,7 @@ export class Breadcrumb { return; } this.id = id; - const excludeTypes: string[] = [] + const excludeTypes: string[] = []; if (this.element.parentElement?.parentElement && this.element.parentElement.parentElement.classList.contains("b3-dialog__cardblock")) { // 闪卡面包屑不能显示答案 excludeTypes.push("NodeTextMark-mark"); diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 479b0084d..a0b69ebed 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -704,7 +704,7 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element: } }] }).element); - const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_SEARCHEKEYS) || "{}") + const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_SEARCHEKEYS) || "{}"); if (typeof localData.layout === "undefined") { localData.layout = 0; }