diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index 82d91d680..0e891086c 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -68,7 +68,7 @@ export class Tree { iconHTML = ``; } else if (item.type === "outline") { titleTip = ` aria-label="${escapeAriaLabel(Lute.BlockDOM2Content(item.name))}"`; - iconHTML = ``; + iconHTML = ``; } let countHTML = ""; if (item.count) { @@ -123,10 +123,14 @@ ${item.label ? "data-label='" + item.label + "'" : ""}> countHTML = `${item.count}`; } let iconHTML; - if (item.type === "NodeDocument") { - iconHTML = `${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}`; + if (type === "outline") { + iconHTML = ``; } else { - iconHTML = ``; + if (item.type === "NodeDocument") { + iconHTML = `${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}`; + } else { + iconHTML = ``; + } } let style = ""; if (isMobile()) {