From 8981740620f7ba01c966a5df98d63a73729968e5 Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 6 May 2022 23:01:17 +0200 Subject: [PATCH] scroll behavior --- app/router.scrollBehavior.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/router.scrollBehavior.js b/app/router.scrollBehavior.js index 602e116c..b85f8f87 100644 --- a/app/router.scrollBehavior.js +++ b/app/router.scrollBehavior.js @@ -1,10 +1,6 @@ /** * https://nuxtjs.org/docs/configuration-glossary/configuration-router/#scrollbehavior - * always scrollToTop but on index page */ export default function (to, _from, savedPosition) { - if (to.name === 'index') { - return savedPosition - } return { x: 0, y: 0 } }