diff --git a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue index 9ece1c6..585eec4 100644 --- a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue +++ b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue @@ -46,7 +46,7 @@ const currentScrollTop = shallowRef(0) const getInitByScroll = () => { const articleDom = document.getElementById('markdown-body') const headings = articleDom?.querySelectorAll('h1, h2, h3') - headings?.forEach((item: any, i) => { + headings?.forEach((item: any) => { heading.value.push(item) })