From 4a0600bea77c5684c1d394b2c178c14bcefc6f98 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 21 Oct 2024 00:10:10 +0800 Subject: [PATCH] :lipstick: https://github.com/siyuan-note/siyuan/issues/12842 --- app/src/search/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 18d1b842c..2d496037b 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1395,7 +1395,6 @@ const onSearch = (data: IBlock[], edit: Protyle, element: Element, config: Confi let resultHTML = ""; data.forEach((item, index) => { const title = getNotebookName(item.box) + getDisplayName(item.hPath, false); - const tags = item.tag ? `${item.tag.split("# #").map(tag => `${tag.replace("#", "")}`).join(" ").replace("#", "")}` : ""; if (item.children) { resultHTML += `
@@ -1410,6 +1409,7 @@ ${unicode2Emoji(getNotebookIcon(item.box) || Constants.SIYUAN_IMAGE_NOTE, "b3-li ${unicode2Emoji(childItem.ial.icon, "b3-list-item__graphic", true)} ${childItem.content} ${getAttr(childItem)} +${childItem.tag ? `${childItem.tag.split("# #").map(tag => `${tag.replace("#", "")}`).join(" ").replace("#", "")}` : ""}
`; }); resultHTML += ""; @@ -1419,7 +1419,7 @@ ${getAttr(childItem)} ${unicode2Emoji(item.ial.icon, "b3-list-item__graphic", true)} ${item.content} ${getAttr(item)} -${tags} +${item.tag ? `${item.tag.split("# #").map(tag => `${tag.replace("#", "")}`).join(" ").replace("#", "")}` : ""} ${escapeGreat(title)} `; }