From 3b2e92e2b593c2bc06f8184ee25ab747332b56fa Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 4 Jul 2024 16:02:11 +0300 Subject: [PATCH] remove scroll behavior --- components/header.vue | 10 +--------- plugins/scroll.ts | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 plugins/scroll.ts diff --git a/components/header.vue b/components/header.vue index 8f26552..ded8749 100644 --- a/components/header.vue +++ b/components/header.vue @@ -3,14 +3,6 @@ const config = useRuntimeConfig() const apiBase = config.public.apiBase const { data: pagesData } = await useFetch(`${apiBase}/pages/?ordering=order`) -const { scrollToAnchor, scrollToTop } = useAnchorScroll({ - toTop: { - scrollOptions: { - behavior: 'smooth', - offsetTop: 0, - } - }, -}) const route = useRoute()