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();