Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-10-21 11:07:22 +08:00
commit 8acc405e12
2 changed files with 10 additions and 5 deletions

View file

@ -100,6 +100,10 @@ export const getBacklinkHeadingMore = (moreElement: HTMLElement) => {
};
export const genBreadcrumb = (blockPaths: IBreadcrumb[], renderFirst = false) => {
if (1 > blockPaths.length) {
return "";
}
let html = "";
blockPaths.forEach((item, index) => {
if (index === 0 && !renderFirst) {