diff --git a/src/components/menu/NavBar.vue b/src/components/menu/NavBar.vue index 2a4f6f2..6efcb40 100644 --- a/src/components/menu/NavBar.vue +++ b/src/components/menu/NavBar.vue @@ -23,6 +23,11 @@ const handleThrottleScroll = throttle(100, () => { }); window.addEventListener("scroll", handleThrottleScroll); + +const navPageByResetScroll = (path: string) => { + window.scrollTo({ top: 0, behavior: "smooth" }); + navigateTo(path); +};