Skip to content

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

:art: 闪卡面包屑不能显示答案

Vanessa294d88b8c191
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index c77f1c8348..d70552935d 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -389,7 +389,12 @@ export class Breadcrumb {
return;
}
this.id = id;
- fetchPost("/api/block/getBlockBreadcrumb", {id}, (response) => {
+ const excludeTypes: string[] = []
+ if (this.element.parentElement.classList.contains("b3-dialog__cardblock")) {
+ // 闪卡面包屑不能显示答案
+ excludeTypes.push("NodeTextMark-mark");
+ }
+ fetchPost("/api/block/getBlockBreadcrumb", {id, excludeTypes}, (response) => {
let html = "";
response.data.forEach((item: IBreadcrumb, index: number) => {
let isCurrent = false;