diff --git a/components/doc/DocSectionNav.vue b/components/doc/DocSectionNav.vue index c04b052d9..2683171f3 100644 --- a/components/doc/DocSectionNav.vue +++ b/components/doc/DocSectionNav.vue @@ -39,9 +39,9 @@ export default { } }, mounted() { - //this.scrollCurrentUrl(); + this.scrollCurrentUrl(); - //window.addEventListener('scroll', this.onScroll, { passive: true }); + window.addEventListener('scroll', this.onScroll, { passive: true }); }, beforeUnmount() { window.removeEventListener('scroll', this.onScroll, { passive: true });