Prechádzať zdrojové kódy

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

Vanessa 2 rokov pred
rodič
commit
294d88b8c1
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  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;
         }
         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;