Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/7796

Vanessa98eedd015ed4
diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.ts
index 0bc6342e06..70f9c8a77c 100644
--- a/app/src/card/viewCards.ts
+++ b/app/src/card/viewCards.ts
@@ -141,6 +141,8 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |
nextElment.classList.add("b3-list-item--focus");
target.parentElement.remove();
}
+
+ dialog.element.querySelector(".counter").textContent = (parseInt(dialog.element.querySelector(".counter").textContent) - 1).toString()
if (cb) {
cb(removeResponse);
}
@@ -184,6 +186,7 @@ ${unicode2Emoji(item.ial.icon, false, "b3-list-item__graphic", true)}
</div>`;
isFirst = false;
} else {
+ // 块被删除的情况
listHTML += `<div data-type="card-item" class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}">
<span class="b3-list-item__text">${item.content}</span>
<span data-type="remove" data-id="${item.id}" class="b3-list-item__action b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.removeDeck}">