From ee5b406bb1d1113d8a37c49c590120df1e3de961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=A5=A5=E6=9F=8F?= <1760399176@qq.com> Date: Sun, 19 Feb 2023 15:33:44 +0800 Subject: [PATCH] fix: eslint --- frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })