diff --git a/utils/smooth-scroll.ts b/utils/smooth-scroll.ts index 15400e43..40014030 100644 --- a/utils/smooth-scroll.ts +++ b/utils/smooth-scroll.ts @@ -28,7 +28,7 @@ export class SmoothScroll { if (this.interval) { clearInterval(this.interval); } - const fragment = router.parseUrl(routerurl).fragment; + const fragment = router.parseUrl(router.url).fragment; if (this.lastComponent !== this.currentComponent) { window.scrollTo({top: 0}); } @@ -77,5 +77,4 @@ export class SmoothScroll { clearInterval(this.interval); } } -} -. \ No newline at end of file +} \ No newline at end of file