diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 563c3ee..8cacc3b 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -14,8 +14,7 @@ const showNavbar = ref(true); const lastScrollPosition = ref(0); function onScroll() { - const currentScrollPosition = - window.pageYOffset || document.documentElement.scrollTop; + const currentScrollPosition = window.pageYOffset || document.documentElement.scrollTop; if (currentScrollPosition < 0) { return; } @@ -41,7 +40,9 @@ onBeforeUnmount(() => { - +