Forráskód Böngészése

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

Vanessa 2 éve
szülő
commit
294d88b8c1
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      app/src/protyle/breadcrumb/index.ts

+ 6 - 1
app/src/protyle/breadcrumb/index.ts

@@ -389,7 +389,12 @@ export class Breadcrumb {
             return;
             return;
         }
         }
         this.id = id;
         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 = "";
             let html = "";
             response.data.forEach((item: IBreadcrumb, index: number) => {
             response.data.forEach((item: IBreadcrumb, index: number) => {
                 let isCurrent = false;
                 let isCurrent = false;