Compare commits
2 Commits
c5f707efb9
...
5664f1be9e
Author | SHA1 | Date |
---|---|---|
|
5664f1be9e | |
![]() |
c6ba77fde6 |
|
@ -39,11 +39,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html::-webkit-scrollbar, body::-webkit-scrollbar {
|
.noscroll {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
.noscroll::-webkit-scrollbar {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -82,6 +82,12 @@ const router = new VueRouter({
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (to.path !== '/login') {
|
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']
|
const isAuthenticated = store.getters['accountStore/isAuthenticated']
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in New Issue