🎨 闪卡面包屑不能显示答案

This commit is contained in:
Vanessa 2022-12-26 19:31:45 +08:00
parent 855b92f4ca
commit 294d88b8c1

View file

@ -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;