Skip to content

Commit 254371f

Browse files
committed
♻️ [refactor] 루트 디렉토리 접근 시 권한별 랜딩 페이지 접근
1 parent 210258b commit 254371f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ router.beforeEach(async (to, from, next) => {
151151
ROLE_ADMIN: '/member-management'
152152
}
153153

154-
if (info.role && to.path === '/login') {
154+
if ((info.role && to.path === '/login') || (info.role && to.path === '/')) {
155155
return next(redirectMap[info.role])
156156
}
157157

0 commit comments

Comments
 (0)