From c6ba77fde6b63227892ceba0b9915e9536581b67 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 16 Aug 2024 22:26:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EB=A6=AC=EC=A6=88=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C?= =?UTF-8?q?=EB=A7=8C=20html=EC=A0=84=EC=B2=B4=20scroll=EC=9D=84=20?= =?UTF-8?q?=EB=8F=99=EC=9E=91=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++-- src/router/index.js | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 168da05..a767c63 100644 --- a/src/App.vue +++ b/src/App.vue @@ -39,11 +39,12 @@ } } -html::-webkit-scrollbar, body::-webkit-scrollbar { +.noscroll { overflow-y: hidden; } -html, body { +.noscroll::-webkit-scrollbar { overflow-y: hidden; + display: none; } diff --git a/src/router/index.js b/src/router/index.js index 86bf598..e2eec06 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -82,6 +82,12 @@ const router = new VueRouter({ router.beforeEach((to, from, next) => { if (to.path !== '/login') { + if (to.path === '/content/series/list') { + document.documentElement.classList.add('noscroll'); // html에 클래스 추가 + } else { + document.documentElement.classList.remove('noscroll'); + } + const isAuthenticated = store.getters['accountStore/isAuthenticated'] if (isAuthenticated) { next(); -- 2.40.1