Skip to content

Commit 16b5323

Browse files
author
reco_luan
committed
fix(vuepress-theme-reco): solve the problem of className
solve the problem of overlap between className and icon name
1 parent 6688c86 commit 16b5323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vuepress-theme-reco/components/SubSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
const active = isActive(this.$route, this.$page.path + '#' + header.slug)
1313
if (active) {
1414
setTimeout(() => {
15-
document.querySelector(`.reco-${header.slug}`).scrollIntoView()
15+
document.querySelector(`.reco-side-${header.slug}`).scrollIntoView()
1616
}, 300)
1717
}
1818
return active
@@ -32,7 +32,7 @@ export default {
3232
attr: { key: header.title }
3333
}, [
3434
h('router-link', {
35-
class: { 'sidebar-link': true, [`reco-${header.slug}`]: true },
35+
class: { 'sidebar-link': true, [`reco-side-${header.slug}`]: true },
3636
props: { to: `${this.$page.path}#${header.slug}` }
3737
}, header.title)
3838
])

0 commit comments

Comments
 (0)