Skip to content

Commit

Permalink
fix: untitled, and when scrolling, MdCatalog component will display…
Browse files Browse the repository at this point in the history
… the last cached catalog
  • Loading branch information
imzbf committed Dec 17, 2024
1 parent 02d75ab commit fb84cc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/MdCatalog/MdCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const MdCatalog = defineComponent({

const findActiveHeading = (list: HeadList[]) => {
if (list.length === 0) {
activeItem.value = undefined;
state.list = [];
return false;
}
Expand Down

0 comments on commit fb84cc8

Please sign in to comment.