시리즈 관리 페이지에서만 html전체 scroll을 동작하지 않도록 수정
This commit is contained in:
		| @@ -39,11 +39,12 @@ | ||||
|   } | ||||
| } | ||||
|  | ||||
| html::-webkit-scrollbar, body::-webkit-scrollbar { | ||||
| .noscroll { | ||||
|   overflow-y: hidden; | ||||
| } | ||||
|  | ||||
| html, body { | ||||
| .noscroll::-webkit-scrollbar { | ||||
|   overflow-y: hidden; | ||||
|   display: none; | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung