diff --git a/src/client/theme-default/components/VPDocAsideOutline.vue b/src/client/theme-default/components/VPDocAsideOutline.vue index 00ea9bbe..b8a2f1e1 100644 --- a/src/client/theme-default/components/VPDocAsideOutline.vue +++ b/src/client/theme-default/components/VPDocAsideOutline.vue @@ -22,6 +22,11 @@ const container = ref() const marker = ref() useActiveAnchor(container, marker) + +function scrollToTop() { + window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) +} +